O'Reilly logo

LDAP Programming with Java™ by Tony Dahbura, Rob Weltman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required