LDAPAuthenticationEngine

Struct to check if credentials are able to authenticate on the LDAP server.

Constructors

this
this(string host, bool encrypted)

Connects to the LDAP server using the given host.

this
this(string[] hosts, bool encrypted)

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

Destructor

~this
~this()
Undocumented in source.

Members

Functions

check
bool check(string user, string cred)

Checks if a user can login with the credentials. (username should be in format username, username@DOMAINor DOMAIN\username). Attempts to bind with the credentials using simple auth if encrypted was specified as false, else will use NTLM. Username must contain DOMAIN if encrypted was specified as true. Returns true if it was successful.

getOption
void getOption(int option, void* value)

Returns the current value of an option.

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