Sha256: 678127d5dcb81a966dcd72e8efa4815b86b34ce482c6c5dfd5dabb1a999956a5
Contents?: true
Size: 743 Bytes
Versions: 7
Compression:
Stored size: 743 Bytes
Contents
# populate ldap with basic data ldapadd -x -w behappy -c -D "cn=admin,dc=example,dc=com" < test.ldif # search the whole domain ldapsearch -x -w behappy -c -D "cn=admin,dc=example,dc=com" -b 'dc=example,dc=com' # search people ldapsearch -x -w behappy -c -D "cn=admin,dc=example,dc=com" -b 'ou=people,dc=example,dc=com' #search groups ldapsearch -x -w behappy -c -D "cn=admin,dc=example,dc=com" -b 'ou=groups,dc=example,dc=com' # printout delete commands for all people ldapsearch -x -w behappy -c -D "cn=admin,dc=example,dc=com" -b 'ou=people,dc=example,dc=com' "uid=*" | grep ^uid: | sed -e "s/^.....//" -e 's/$/,ou=people,dc=example,dc=com"/' -e 's/^/-x -w behappy -c -D "cn=admin,dc=example,dc=com" "uid=/' | xargs -L 1 echo ldapdelete
Version data entries
7 entries across 7 versions & 1 rubygems