LDAP URLs
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 IETF Standard
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 ] ] ]
where
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). ...
Get LDAP Programming with Java™ now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.