Connects to the LDAP server using the given host.
Connects to the LDAP server by trying every host until it can find one.
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.
Returns the current value of an option.
Sets an option to an arbitrary value (See https://msdn.microsoft.com/en-us/library/aa366993(v=vs.85).aspx)
Terminates the connection.
Pointer to internal (platform-dependent) connection handle. Use with care.
Struct to check if credentials are able to authenticate on the LDAP server.