Sha256: 6f13d07776dcfa1ac4b47525694d9710fa643f90b43de7db3b4f3a16291d9727

Contents?: true

Size: 1023 Bytes

Versions: 16

Compression:

Stored size: 1023 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

# all groups
ldapsearch -x -w behappy -c -D "cn=admin,dc=example,dc=com" -b 'ou=groups,dc=example,dc=com' "cn=*" | grep ^cn: | sed -e "s/^....//" -e 's/$/,ou=groups,dc=example,dc=com"/' -e 's/^/-x -w behappy -c -D "cn=admin,dc=example,dc=com" "cn=/' | xargs -L 1 echo ldapdelete

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm-ldap-adapter-0.4.7 ldap-commands.txt
dm-ldap-adapter-0.4.8 ldap-commands.txt
dm-ldap-adapter-0.4.6 ldap-commands.txt
dm-ldap-adapter-0.4.6-java ldap-commands.txt
dm-ldap-adapter-0.4.5-java ldap-commands.txt
dm-ldap-adapter-0.4.5 ldap-commands.txt
dm-ldap-adapter-0.4.4-java ldap-commands.txt
dm-ldap-adapter-0.4.4 ldap-commands.txt
dm-ldap-adapter-0.4.3-java ldap-commands.txt
dm-ldap-adapter-0.4.3 ldap-commands.txt
dm-ldap-adapter-0.4.2 ldap-commands.txt
dm-ldap-adapter-0.4.1 ldap-commands.txt
dm-ldap-adapter-0.4.0 ldap-commands.txt
dm-ldap-adapter-0.4.0.alpha4 ldap-commands.txt
dm-ldap-adapter-0.4.0.alpha3 ldap-commands.txt
dm-ldap-adapter-0.4.0.alpha2 ldap-commands.txt