LDAPConnection.search

Synchronously search the LDAP directory and return entries with attributes.

struct LDAPConnection
search
(
string searchBase
,,
string filter = "(objectClass=*)"
,
string[] attrs = null
,
bool attrsonly = false
,,,,
int sizeLimit = 0
)

Parameters

searchBase string

String that contains the distinguished name of the entry at which to start the search. (For Example OU=data,DC=data,DC=local)

searchScope LDAPSearchScope

Scope to search in (base, oneLevel, subTree)

attrs string[]

Array to strings which attributes to return. Pass null for all.

attrsonly bool

Boolean that should be false if both attribute types and values are to be returned. true for only types.

serverControls mPLDAPControl

A list of LDAP server controls.

clientControls mPLDAPControl

A list of client controls.

timeout PLDAP_TIMEVAL

Combined search and server operation timelimit.

sizeLimit int

limit of the number of entries to return. 0 for unlimited.

Return Value

Type: SearchResult[]

Entries with the requested attributes.

Meta