LDAP URL

Definition taken from RFC1959

<ldapurl> ::= "ldap://" [ <hostport> ] "/" <dn> [ "?" <attributes>
                        [ "?" <scope> "?" <filter> ] ]
<hostport> ::= <hostname> [ ":" <portnumber> ]
<dn> ::= a string as defined in RFC 1485
<attributes> ::= NULL | <attributelist>
<attributelist> ::= <attributetype>
                  | <attributetype> [ "," <attributelist> ]
<attributetype> ::= a string as defined in RFC 1777
<scope> ::= "base" | "one" | "sub"
<filter> ::= a string as defined in RFC 1558

Explanations:

DN
Distinguished name
Attribute list
List of attributes you want returned
Scope
base = base object search
one = one level search
sub = subtree search
Filter
Standard LDAP search filter

Examples:

  • ldap://foo.bar.com/dc=bar,dc=com
  • ldap://argle.bargle.com/dc=bar,dc=com??sub?uid=barney
  • ldap://ldap.bedrock.com/dc=bar,dc=com?cn?sub?uid=barney