/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-5.2.0-cpu-conf.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-5.2.0-cpu-conf.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Nov 2 17:19:26 2010 UTC (13 years, 7 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-base-5_2_0-41_el5_sme, e-smith-base-5_2_0-42_el5_sme
Add routines for ldap auth

1 slords 1.1 diff -up e-smith-base-5.2.0/createlinks.cpu-conf e-smith-base-5.2.0/createlinks
2     --- e-smith-base-5.2.0/createlinks.cpu-conf 2010-11-01 07:55:51.000000000 -0600
3     +++ e-smith-base-5.2.0/createlinks 2010-11-01 07:58:01.000000000 -0600
4     @@ -214,6 +214,14 @@ foreach my $file (qw(
5     templates2events($file, qw(console-save bootstrap-console-save));
6     }
7    
8     +foreach my $file (qw(
9     + /etc/cpu.conf
10     + /etc/cpu-system.conf
11     + ))
12     +{
13     + templates2events($file, qw(console-save bootstrap-console-save ldap-update));
14     +}
15     +
16     # conf-userlists
17    
18     foreach (qw(users.allow accounts.allow accounts.deny))
19     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/00header.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/00header
20     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/00header.cpu-conf 2010-11-01 07:58:29.000000000 -0600
21     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/00header 2010-11-01 07:58:43.000000000 -0600
22     @@ -0,0 +1,3 @@
23     +[GLOBAL]
24     +DEFAULT_METHOD = ldap
25     +
26     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/05ldap.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/05ldap
27     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/05ldap.cpu-conf 2010-11-01 07:58:51.000000000 -0600
28     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/05ldap 2010-11-01 07:59:03.000000000 -0600
29     @@ -0,0 +1,4 @@
30     +[LDAP]
31     +LDAP_HOST = localhost
32     +LDAP_PORT = 389
33     +
34     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/10bindpw.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/10bindpw
35     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/10bindpw.cpu-conf 2010-11-01 07:59:18.000000000 -0600
36     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/10bindpw 2010-11-01 07:59:34.000000000 -0600
37     @@ -0,0 +1,2 @@
38     +BIND_DN = "cn=root,{ esmith::util::ldapBase ($DomainName); }"
39     +BIND_PASS = { esmith::util::LdapPassword (); }
40     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/15defaultObjectClass.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/15defaultObjectClass
41     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/15defaultObjectClass.cpu-conf 2010-11-01 08:00:02.000000000 -0600
42     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/15defaultObjectClass 2010-11-01 08:00:19.000000000 -0600
43     @@ -0,0 +1,10 @@
44     +{
45     +
46     +our @userObjectClass = qw(inetOrgPerson posixAccount shadowAccount);
47     +our @systemUserObjectClass =qw(account posixAccount shadowAccount);
48     +our @groupObjectClass = qw(posixGroup mailboxRelatedObject);
49     +our @systemGroupObjectClass = qw(posixGroup);
50     +
51     +$OUT .= "";
52     +
53     +}
54     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/20objectClass.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/20objectClass
55     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/20objectClass.cpu-conf 2010-11-01 08:00:27.000000000 -0600
56     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/20objectClass 2010-11-01 08:01:06.000000000 -0600
57     @@ -0,0 +1,15 @@
58     +{
59     +if ($ACCOUNT eq 'system'){
60     + $OUT .= "USER_OBJECT_CLASS = " . join(",",@systemUserObjectClass) . "\n";
61     + $OUT .= "GROUP_OBJECT_CLASS = " . join(",",@systemGroupObjectClass) . "\n";
62     +}
63     +else{
64     + $OUT .= "USER_OBJECT_CLASS = " . join(",",@userObjectClass) . "\n";
65     + $OUT .= "GROUP_OBJECT_CLASS = " . join(",",@groupObjectClass) . "\n";
66     +
67     +}
68     +
69     +$OUT .= "USER_BASE = ou=Users," . esmith::util::ldapBase ($DomainName) . "\n";
70     +$OUT .= "GROUP_BASE = ou=Groups," . esmith::util::ldapBase ($DomainName) ."\n";
71     +
72     +}
73     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/25filter.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/25filter
74     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/25filter.cpu-conf 2010-11-01 08:01:25.000000000 -0600
75     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/25filter 2010-11-01 08:01:37.000000000 -0600
76     @@ -0,0 +1,2 @@
77     +USER_FILTER = (objectClass=posixAccount)
78     +GROUP_FILTER = (objectClass=posixGroup)
79     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/30cnString.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/30cnString
80     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/30cnString.cpu-conf 2010-11-01 08:01:42.000000000 -0600
81     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/30cnString 2010-11-01 08:01:52.000000000 -0600
82     @@ -0,0 +1,2 @@
83     +USER_CN_STRING = uid
84     +GROUP_CN_STRING = cn
85     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/35skel.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/35skel
86     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/35skel.cpu-conf 2010-11-01 08:02:06.000000000 -0600
87     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/35skel 2010-11-01 08:02:17.000000000 -0600
88     @@ -0,0 +1 @@
89     +SKEL_DIR = /etc/e-smith/skel/user
90     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/40shell.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/40shell
91     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/40shell.cpu-conf 2010-11-01 08:02:23.000000000 -0600
92     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/40shell 2010-11-01 08:02:32.000000000 -0600
93     @@ -0,0 +1 @@
94     +DEFAULT_SHELL = /usr/bin/rssh
95     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/45homeDir.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/45homeDir
96     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/45homeDir.cpu-conf 2010-11-01 08:02:43.000000000 -0600
97     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/45homeDir 2010-11-01 08:02:51.000000000 -0600
98     @@ -0,0 +1 @@
99     +HOME_DIRECTORY = /home/e-smith/files/users
100     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/50uidGid.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/50uidGid
101     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/50uidGid.cpu-conf 2010-11-01 08:02:59.000000000 -0600
102     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/50uidGid 2010-11-01 08:03:13.000000000 -0600
103     @@ -0,0 +1,8 @@
104     +MAX_UIDNUMBER = 10000
105     +MIN_UIDNUMBER = 100
106     +MAX_GIDNUMBER = 10000
107     +MIN_GIDNUMBER = 101
108     +ID_MAX_PASSES = 1000
109     +USERGROUPS = yes
110     +USERS_GID = 100
111     +RANDOM = "false"
112     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/55passwdShadow.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/55passwdShadow
113     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/55passwdShadow.cpu-conf 2010-11-01 08:03:43.000000000 -0600
114     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/55passwdShadow 2010-11-01 08:03:56.000000000 -0600
115     @@ -0,0 +1,2 @@
116     +PASSWORD_FILE = "/etc/passfile"
117     +SHADOW_FILE = "/etc/shadowfile"
118     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/60hash.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/60hash
119     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/60hash.cpu-conf 2010-11-01 08:04:04.000000000 -0600
120     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/60hash 2010-11-01 08:04:15.000000000 -0600
121     @@ -0,0 +1 @@
122     +HASH = "crypt"
123     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/65shadow.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/65shadow
124     --- e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/65shadow.cpu-conf 2010-11-01 08:04:23.000000000 -0600
125     +++ e-smith-base-5.2.0/root/etc/e-smith/templates/etc/cpu.conf/65shadow 2010-11-01 08:04:35.000000000 -0600
126     @@ -0,0 +1,7 @@
127     +SHADOWLASTCHANGE = 11192
128     +SHADOWMAX = 99999
129     +SHADOWWARING = 7
130     +SHADOWEXPIRE = -1
131     +SHADOWFLAG = 134538308
132     +SHADOWMIN = -1
133     +SHADOWINACTIVE = -1
134     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu.conf.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu.conf
135     --- e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu.conf.cpu-conf 2010-11-01 08:10:45.000000000 -0600
136     +++ e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu.conf 2010-11-01 08:10:55.000000000 -0600
137     @@ -0,0 +1,2 @@
138     +PERMS=0600
139     +MORE_DATA={ ACCOUNT => "user" }
140     diff -up e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu-system.conf.cpu-conf e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu-system.conf
141     --- e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu-system.conf.cpu-conf 2010-11-01 08:11:06.000000000 -0600
142     +++ e-smith-base-5.2.0/root/etc/e-smith/templates.metadata/etc/cpu-system.conf 2010-11-01 08:11:20.000000000 -0600
143     @@ -0,0 +1,4 @@
144     +PERMS=0600
145     +TEMPLATE_PATH="/etc/cpu.conf"
146     +OUTPUT_FILENAME="/etc/cpu-system.conf"
147     +MORE_DATA={ ACCOUNT => "system" }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed