Meditation, The Art of Exploitation

Thinking? At last I have discovered it--thought; this alone is inseparable from me. I am, I exist--that is certain. But for how long? For as long as I am thinking. For it could be, that were I totally to cease from thinking, I should totally cease to exist....I am, then, in the strict sense only a thing that thinks.

Tuesday, November 28, 2006

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*)"