LDAP has a URL syntax for a uniform method of searching LDAP Databases etc.
ldap://<ldap_server><port>?/[basedn??[attribute??[searchtype??[(<filter>)?
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.