LDAP.StartTLS
-------------

Starts encrypted connection.

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

MBS( "LDAP.StartTLS"; LDAPRef ) 

**MBS**( **"LDAP.StartTLS";** /\* Starts encrypted connection. \*/  
**$LDAPRef**) /\* The reference number for the LDAP connection.e.g. $ldap \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |

### Result

Returns OK or error.

### Description

Starts encrypted connection.  
Sends a StartTLS request to a server, waits for the reply, and then installs TLS handlers on the session if the request succeeded.  
### See also

- [LDAP.Connect](LDAPConnect.md)

### Release notes

- **Version 9.3**
    - Added LDAP.StartTLS function.

This function checks for a license.

Created 13th August 2019 , last changed 13th August 2019

  
[LDAP.SimpleBind](LDAPSimpleBind.md) - [List.AddPostfix](ListAddPostfix.md)

[HTML Version](LDAPStartTLS.shtml)