openldap usage tips
Openldap is a PGL implementation of LDAP protocol. After compilation/install. Start the learning the test scripts. To start a ldap server,
cd /root/openldap-2.3.29/tests
./run start-server (edit defines.sh and change LOCALHOST to $ip address so that remote connection works)
../clients/tools/ldapsearch -P 3 -x -LLL -S "" -b "dc=example,dc=com" -h 192.168.1.253 -p 9011 "(cn=Manager)"
../clients/tools/ldapsearch -h (display help messages)
tcpdump -n -vv port 901 (if remote connection does not work)
Perform bind before search request:
../clients/tools/ldapsearch -D "cn=administrator,cn=users,dc=argathia,dc=com" -w argathia -P 3 -x -LLL -S "" -b "dc=argathia,dc=com" -h 169.254.2.1 -p 389 "(cn=fei*)"
cd /root/openldap-2.3.29/tests
./run start-server (edit defines.sh and change LOCALHOST to $ip address so that remote connection works)
../clients/tools/ldapsearch -P 3 -x -LLL -S "" -b "dc=example,dc=com" -h 192.168.1.253 -p 9011 "(cn=Manager)"
../clients/tools/ldapsearch -h (display help messages)
tcpdump -n -vv port 901 (if remote connection does not work)
Perform bind before search request:
../clients/tools/ldapsearch -D "cn=administrator,cn=users,dc=argathia,dc=com" -w argathia -P 3 -x -LLL -S "" -b "dc=argathia,dc=com" -h 169.254.2.1 -p 389 "(cn=fei*)"
<< Home