- Timestamp:
- 11/12/08 16:38:16 (8 weeks ago)
- Location:
- trunk/client/usersandgroups
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/EBox/Ldap.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/usersandgroups/ChangeLog
r11512 r11644 1 1 0.12.100 2 + Restore backup is more robust: inexistent users in a group are ignored 2 + Restore backup is more robust: inexistent users in a group are 3 ignored 4 + Make and restore backup more robust: removed slapd.conf 5 parameters in both slapadd and slapcat invokations, so we can use 6 the module with sldap with configuration in the directory itself 3 7 0.12.99 4 8 + New release -
trunk/client/usersandgroups/src/EBox/Ldap.pm
r11274 r11644 558 558 559 559 my $ldapDir = EBox::Ldap::dataDir(); 560 my $slapdConfFile = EBox::Ldap::slapdConfFile();561 560 my $user = EBox::Config::user(); 562 561 my $group = EBox::Config::group(); 563 562 my $ldifFile = $self->ldifFile($dir); 564 563 565 my $slapcatCommand = $self->_slapcatCmd($ldifFile , $slapdConfFile);564 my $slapcatCommand = $self->_slapcatCmd($ldifFile); 566 565 my $chownCommand = "/bin/chown $user.$group $ldifFile"; 567 566 … … 581 580 582 581 my $ldapDir = EBox::Ldap::dataDir(); 583 my $slapdConfFile = EBox::Ldap::slapdConfFile();584 582 my $ldifFile = $self->ldifFile($dir); 585 583 586 584 my $backupCommand = $self->_backupSystemDirectory(); 587 585 my $rmCommand = $self->_rmLdapDirCmd($ldapDir); 588 my $slapaddCommand = $self->_slapaddCmd($ldifFile , $slapdConfFile);586 my $slapaddCommand = $self->_slapaddCmd($ldifFile); 589 587 my $chownDataCommand = $self->_chownDatadir; 590 588 … … 619 617 sub _slapcatCmd 620 618 { 621 my ($self, $ldifFile , $slapdConfFile) = @_;622 return "/usr/sbin/slapcat -f $slapdConfFile> $ldifFile";619 my ($self, $ldifFile) = @_; 620 return "/usr/sbin/slapcat > $ldifFile"; 623 621 } 624 622 625 623 sub _slapaddCmd 626 624 { 627 my ($self, $ldifFile , $slapdConfFile) = @_;628 return "/usr/sbin/slapadd -c -f $slapdConfFile< $ldifFile" ;625 my ($self, $ldifFile) = @_; 626 return "/usr/sbin/slapadd -c < $ldifFile" ; 629 627 } 630 628
