LDAP query
807580Jun 11 2010 — edited Jun 12 2010I'm working on a program for my internship, and I'm not sure how to implement it.
I need to write a program that gets all the dn's from a tree on our LDAP server. Ex:
dn: cn=itemName,ou=directoryZ,ou=directoryY,o=directoryX
Such that I retrieve the cn's in directoryZ.
I will then use each of those cn's to do a query on our SQL database, so I need to be able to temporarily store the cn.
I've gotten the code written that will actually connect to the server; I'm just not sure how to execute the search.
Thanks,
Colin