LDAP.SimpleBind
---------------

Authenticates a client to a server, using a plaintext password.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "LDAP.SimpleBind"; LDAPRef; DN; Password ) 

**MBS**( **"LDAP.SimpleBind";** /\* Authenticates a client to a server, using a plaintext password. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$DN**; /\* The name of the user to bind as.   
The bind operation uses the dn and password parameters to authenticate the user. \*/   
**$Password**) /\* The password of the user specified in the dn parameter. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |
| DN | The name of the user to bind as.    The bind operation uses the dn and password parameters to authenticate the user. |  |
| Password | The password of the user specified in the dn parameter. |  |

### Result

Returns OK or error.

### Description

Authenticates a client to a server, using a plaintext password.  
### Examples

Binds anonymously to the server:

 MBS ( "LDAP.SimpleBind"; $ldap )  
### Blog Entries

- [LDAP in FileMaker](https://www.mbsplugins.de/archive/2015-12-16/LDAP_in_FileMaker/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 15th December 2015 , last changed 15th December 2015

  
[LDAP.SetTimeOut](LDAPSetTimeOut.md) - [LDAP.StartTLS](LDAPStartTLS.md)

[HTML Version](LDAPSimpleBind.shtml)