What's the format of an LDAP URL?

John Zukowski

RFC 2255 defines the basic structure of the LDAP URL. Its basic definition is:

  "ldap://" [host [":" port] ] ["/" [dn
    ["?" [attributeList] ["?" [scope] 
    ["?" [filterString] ["?" extensions]]]]]
  • host and port specify where the LDAP server is located
  • dn is the LDAP Distinguished Name to search for
  • attributeList is a comma-delimited list of what to retrieve
  • scope is either base, one, or sub [base is the default if unspecified]
  • filterSearch is the search filter
  • extensions is a comma-delimited list of extensions