diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-09-16 00:36:21 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-09-16 00:37:06 +0200 |
commit | 385b3843dcee09441e718318b2d5bcd9b57c67ff (patch) | |
tree | d2440c6c6336f9ad97665ae24eb397cdcada8eb6 | |
parent | df01eb5556cbf07509b995f8bcbda7417e48436c (diff) |
push data into DSA.
-rwxr-xr-x | ldap/mkldapdb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ldap/mkldapdb b/ldap/mkldapdb index 38b5617..604b8ba 100755 --- a/ldap/mkldapdb +++ b/ldap/mkldapdb @@ -45,3 +45,11 @@ for db in passwd group; do ( cd /usr/share/migrationtools && ./migrate_passwd.pl "$tempdir/$db.dump" >"$tempdir/$db.ldif" ) done +#invoke-rc.d slapd stop +#slapadd -l "$tempdir/core.ldif" +#invoke-rc.d slapd start +#ldappasswd -x -h localhost -D "cn=admin,$basedn" -S -w supersecretpassword "cn=admin,$basedn" +for section in base horde; do + ldapadd -x -h localhost -D "cn=admin,$basedn" -f "$tempdir/$section.ldif" -W +done +ldappasswd -x -h localhost -D "cn=admin,$basedn" -S -W "cn=horde,ou=DSA,$basedn" |