[D-community-commits] r196 - trunk/fai-config-dir/scripts/LDAPSERVER

nd-guest at alioth.debian.org nd-guest at alioth.debian.org
Mon Jan 7 22:21:48 UTC 2008


Author: nd-guest
Date: 2008-01-07 22:21:48 +0000 (Mon, 07 Jan 2008)
New Revision: 196

Modified:
   trunk/fai-config-dir/scripts/LDAPSERVER/10-slapd
Log:
ldap db broken, recreate


Modified: trunk/fai-config-dir/scripts/LDAPSERVER/10-slapd
===================================================================
--- trunk/fai-config-dir/scripts/LDAPSERVER/10-slapd	2008-01-07 22:14:02 UTC (rev 195)
+++ trunk/fai-config-dir/scripts/LDAPSERVER/10-slapd	2008-01-07 22:21:48 UTC (rev 196)
@@ -8,7 +8,7 @@
 fcopy -r -M /etc/phpldapadmin
 
 # Ugly hack to remove the default database
-if ! $ROOTCMD ldapsearch -h localhost -x -b "ou=People,dc=debian-community,dc=org" &>/dev/null; then
+if ! $ROOTCMD ldapsearch -h localhost -x -b "ou=Peple,dc=debian-community,dc=org" &>/dev/null; then
 
     $ROOTCMD /etc/init.d/slapd stop
     $ROOTCMD rm -rf /var/lib/ldap/*
@@ -38,7 +38,3 @@
     $ROOTCMD sudo -u openldap slapindex -v
     $ROOTCMD /etc/init.d/slapd start
 fi    
-
-$ROOTCMD /etc/init.d/slapd stop
-$ROOTCMD sudo -u openldap slapindex -v
-$ROOTCMD /etc/init.d/slapd start




More information about the D-community-commits mailing list