In Chapter 11 we used an LDAPUrl object as a compact representation of an LDAP query. Let's take a closer look at the composition and use of an LDAP URL.
An LDAP URL, defined by RFC 2255, is represented by the LDAPUrl class and composed of the following:
"ldap://" [ hostName [":" portNumber] ] "/" baseDN ["?" attributeList ["?" scope "?" filterString ["?" extensions ] ] ]
All text enclosed by quotation marks is literal.
hostName and portNumber identify the location of the LDAP server.
baseDN specifies the name of an entry within the given directory (the entry represents the starting point of the search).
attributeList contains a comma-delimited list of attributes to retrieve (if not specified, fetch all attributes). ...