Show
Ignore:
Timestamp:
08/16/08 21:32:01 (5 months ago)
Author:
/C=ES/O=Warp Networks S.L./CN=juruen@…
Message:

add stuff to have initial support for the cn=config backend

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/juruen/intrepid-alpha4/client/usersandgroups/src/EBox/UsersAndGroups.pm

    r11108 r11210  
    4949use constant MAXPWDLENGTH   => 15; 
    5050use constant DEFAULTGROUP   => '__USERS__'; 
     51use constant CONFLDIF       => '/etc/ldap/eboxldap.ldif'; 
    5152  
    5253sub _create  
     
    7374            { 
    7475             'action' => __('Your current openLDAP database will be replaced ' . 
    75                             'and backuped in /var/backups/slapd'), 
     76                            'and backuped in /var/backups/slapd-preebox'), 
    7677                'reason' => __('eBox will initialize openLDAP to store its database. ' . 
    7778                               'It will also overwrite your current configuration'), 
     
    9495            }, 
    9596        {        
    96          'file' => '/etc/ldap/slapd.conf', 
     97         'file' => '/etc/ldap/eboxldap.ldif', 
    9798         'reason' => __('To configure the openLDAP database with dc ' . 
    9899                        ' entry, rootpw, rootdn, schemas and ACLs used by '. 
     
    137138    push (@array, 'acls'    => $self->allLDAPAcls); 
    138139     
    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); 
    142149} 
    143150