Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

LDAP.Bind

Authenticates a client to the LDAP server.

Component Version macOS Windows Linux Server iOS SDK
LDAP 6.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "LDAP.Bind"; LDAPRef; DN; Cred; AuthMethod { ; Domain } )   More

Parameters

Parameter Description Example Flags
LDAPRef The reference number for the LDAP connection. $ldap
DN Test that contains the distinguished name of the entry used to bind. This can be a DN, a UPN, a WinNT style user name, or other name that the directory server will accept as an identifier.
Cred The credentials with which to authenticate. Arbitrary credentials can be passed using this parameter. The format and content of the credentials depends on the setting of the method parameter.
AuthMethod The authentication method to use.
Can be simple, SASL or Negotiate.
On macOS, also none, KRBv4, KRBv41 and KRBv42 are accepted.
On Windows, also Sicily, MSN, NTLM, DPA, SSPI, Digest and External are accepted.
"simple"
Domain Domain for Windows. Optional

Result

Returns OK or error.

Description

Authenticates a client to the LDAP server.
See also SystemInfo.ADSystemInfo function to query details about logged in computer user.

Examples

Authenticate connection:

Set Variable [$r; Value:MBS("LDAP.Bind"; $ldap; $UserName; $Password; $AuthMethod)]

See also

Example Databases

Blog Entries

Created 15th December 2015, last changed 10th August 2020


LDAP.AddRecord - LDAP.Connect

Feedback: Report problem or ask question.