Penguin
Note: You are viewing an old revision of this page. View the current version.

LDAP has a URL syntax for a uniform method of searching LDAP Databases etc.

ldap://<ldap_server><port>?/[basedn??[attribute??[searchtype??[(<filter>)?

For example the search
ldap://adserver.somewhere.co.nz:389/dc=somewhere,dc=co,dc=nz?sAMAccountName?sub?(sAMAccountName=someusername)

Will return all the sAMAccountName from anywhere under BASEDN dc=somewhere,dc=co,dc=nz on server adserver.somewhere.co.nz where the sAMAccountName=someusername.

This is particularly useful for querying ActiveDirectory servers for usernames.

--

CategoryInteroperability