Components of an LDAP URL
Table C-1
Component
port
base_dn
attributes
scope
filter
The attributes, scope, and filter components are identified by their positions in the
URL. If you do not want to specify any attributes, you still need to include the
question marks delimiting that field.
For example, to specify a subtree search starting from
returns all attributes for entries matching
URL:
ldap://ldap.example.com/dc=example,dc=com??sub?(sn=Jensen)
522
Netscape Directory Server Administrator's Guide • January 2002
LDAP URL Components (Continued)
Description
Port number of the LDAP server (for example, 696).
If no port is specified, the standard LDAP port (389) or LDAPS port
(636) is used.
Distinguished name (DN) of an entry in the directory. This DN
identifies the entry that is the starting point of the search.
If no base DN is specified, the search starts at the root of the
directory tree.
The attributes to be returned. To specify more than one attribute,
use commas to separate the attributes (for example,
"cn,mail,telephoneNumber").
If no attributes are specified in the URL, all attributes are returned.
The scope of the search, which can be one of these values:
• base retrieves information only about the distinguished name
(base_dn) specified in the URL.
• one retrieves information about entries one level below the
distinguished name (base_dn) specified in the URL. The base
entry is not included in this scope.
• sub retrieves information about entries at all levels below the
distinguished name (base_dn) specified in the URL. The base
entry is included in this scope.
If no scope is specified, the server performs a base search.
Search filter to apply to entries within the specified scope of the
search.
If no filter is specified, the server uses the filter (objectClass=*).
"dc=example,dc=com"
, use the followingLDAP
"(sn=Jensen)"
that
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers