Changeset 11210 for branches/juruen/intrepid-alpha4/client/usersandgroups/src/EBox/UsersAndGroups.pm
- Timestamp:
- 08/16/08 21:32:01 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/juruen/intrepid-alpha4/client/usersandgroups/src/EBox/UsersAndGroups.pm
r11108 r11210 49 49 use constant MAXPWDLENGTH => 15; 50 50 use constant DEFAULTGROUP => '__USERS__'; 51 use constant CONFLDIF => '/etc/ldap/eboxldap.ldif'; 51 52 52 53 sub _create … … 73 74 { 74 75 'action' => __('Your current openLDAP database will be replaced ' . 75 'and backuped in /var/backups/slapd '),76 'and backuped in /var/backups/slapd-preebox'), 76 77 'reason' => __('eBox will initialize openLDAP to store its database. ' . 77 78 'It will also overwrite your current configuration'), … … 94 95 }, 95 96 { 96 'file' => '/etc/ldap/ slapd.conf',97 'file' => '/etc/ldap/eboxldap.ldif', 97 98 'reason' => __('To configure the openLDAP database with dc ' . 98 99 ' entry, rootpw, rootdn, schemas and ACLs used by '. … … 137 138 push (@array, 'acls' => $self->allLDAPAcls); 138 139 139 140 $self->writeConfFile($self->{ldap}->slapdConfFile, 141 "/usersandgroups/slapd.conf.mas", \@array); 140 my $fileAttrs = { 141 mode => '0600', 142 uid => 0, 143 gid => 0, 144 }; 145 146 $self->writeConfFile(CONFLDIF, 147 "/usersandgroups/slapd.conf.mas", 148 \@array, $fileAttrs); 142 149 } 143 150
