Blame testing/ldap/README
|
Ryan Haggerty |
689417 |
The most important file is slapd.conf. it has some quick configs necisarry for testing.
|
|
Ryan Haggerty |
8fb15d |
the file slapd.conf belongs at /etc/openldap/slapd.conf
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
install the packages if they are not already
|
|
Ryan Haggerty |
689417 |
yum -y install openldap-server openldap-clients
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
add the root dn
|
|
Ryan Haggerty |
689417 |
slapadd -v -l root.ldif
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
start the service
|
|
Ryan Haggerty |
689417 |
/etc/init.d/ldap start
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
add some test entries (service must be running)
|
|
Ryan Haggerty |
689417 |
ldapmodify -D "cn=Manager,dc=plainjoe,dc=org" -w secret -x -a -v -f users.ldif
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
remove them
|
|
Ryan Haggerty |
689417 |
ldapmodify -D "cn=Manager,dc=plainjoe,dc=org" -w secret -x -v -f remove_all.ldif
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
read them with slapcat
|
|
Ryan Haggerty |
689417 |
slapcat
|
|
Ryan Haggerty |
689417 |
|
|
Ryan Haggerty |
689417 |
or read them with a client tool
|
|
Ryan Haggerty |
689417 |
ldapsearch -x -b "dc=plainjoe,dc=org" "(objectclass=*)"
|