LDAPConnection

LDAP class to do any kind of search in the directory.

Constructors

this
this(string host)

Connects to the LDAP server using the given host.

this
this(string[] hosts)

Connects to the LDAP server by trying every host until it can find one.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bind
void bind(string user, string cred, int method)

Synchronously authenticates a client to the LDAP server.

getOption
void getOption(int option, void* value)

Returns the current value of an option.

search
SearchResult[] search(string searchBase, LDAPSearchScope searchScope, string filter, string[] attrs, bool attrsonly, mPLDAPControl serverControls, mPLDAPControl clientControls, PLDAP_TIMEVAL timeout, int sizeLimit)

Synchronously search the LDAP directory and return entries with attributes.

setOption
void setOption(int option, void* value)

Sets an option to an arbitrary value (See https://msdn.microsoft.com/en-us/library/aa366993(v=vs.85).aspx)

unbind
void unbind()

Terminates the connection.

Variables

_handle
PLDAP _handle;

Pointer to internal (platform-dependent) connection handle. Use with care.

Meta