3.1.5.1.1 Retrieving a Search Base

A search base is a string representing the DN of the base object entry relative to which a search is to be performed. This value is used as the value of the baseObject parameter of a search request, as specified in [RFC4511].

The client can use a user-provided string as the search base. If the user-provided string is an empty string, the client MAY<5> query the server for the defaultNamingContext attribute and use the returned value for the search base instead of an empty string. If the user has not specified a search base, the client SHOULD query the server for the defaultNamingContext attribute and use the returned value for the search base.

To query the server for the defaultNamingContext attribute, the client SHOULD send a search request to the server, as specified in [RFC4511] section 4.5.1, with the following options specified.

Search request parameter

Value

baseObject

Empty string (that is, a zero-length string). 

Scope

baseObject

derefAliases

neverDerefAliases

typesOnly

FALSE

sizeLimit

0

TimeLimit

0

Filter

(objectClass=*)

Attributes

objectClass, defaultNamingContext