1
0

7 Commits 947cd5b913 ... 260d1c64c3

Auteur SHA1 Message Date
  Grégoire Jadi 260d1c64c3 Add test_ldap with minimal ldap configuration for dev il y a 6 ans
  Grégoire Jadi 6dc98ec789 Use unicode instead of bytes in ldap il y a 6 ans
  Grégoire Jadi 41d6f6c49d Upgrade python-ldap and django-ldapdb il y a 6 ans
  Grégoire Jadi 947cd5b913 Add test_ldap with minimal ldap configuration for dev il y a 6 ans
  Grégoire Jadi 0608061088 Use unicode instead of bytes in ldap il y a 6 ans
  Grégoire Jadi f34dded13f WIP upgrade requirements.txt il y a 6 ans
  Grégoire Jadi 3d1300ebeb Fix django-ldapdb upper version limit in requirements.txt il y a 6 ans
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      test_ldap/start_ldap.sh

+ 4 - 1
test_ldap/start_ldap.sh

@@ -1,11 +1,14 @@
 #!/bin/sh
 #!/bin/sh
 
 
 mkdir -p dir/
 mkdir -p dir/
+[[ -e dir/slapd.pid ]] && kill $(cat dir/slapd.pid)
 rm -rf dir/*                    # clean temp file + ldap database
 rm -rf dir/*                    # clean temp file + ldap database
 
 
 # Start slapd daemon
 # Start slapd daemon
-/usr/local/libexec/slapd -d -1 -h "ldap://localhost:10389" -f slapd.conf
+/usr/local/libexec/slapd -h "ldap://localhost:10389" -f slapd.conf
 
 
 # Populate base
 # Populate base
 ldapadd -H ldap://localhost:10389 -D "cn=jimbob,dc=example,dc=com" -w dirtysecret -f init.ldif
 ldapadd -H ldap://localhost:10389 -D "cn=jimbob,dc=example,dc=com" -w dirtysecret -f init.ldif
 ldapadd -H "ldap://localhost:10389/" -D "cn=admin,cn=config" -w config -f ldapPublicKey.ldif
 ldapadd -H "ldap://localhost:10389/" -D "cn=admin,cn=config" -w config -f ldapPublicKey.ldif
+
+echo "LDAP is running, stop it with: kill `cat dir/slapd.pid`"