# AD LDAPS with Encryption Enabled Fails Test Connection

**URL:** <https://forums.rocket.chat/t/ad-ldaps-with-encryption-enabled-fails-test-connection/13926>\
**Category:** Community Support\
**Created:** [April 21, 2022, 1:16pm UTC](https://forums.rocket.chat/t/ad-ldaps-with-encryption-enabled-fails-test-connection/13926 "2022-04-21T13:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NGG](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@NGG](https://forums.rocket.chat/u/NGG)\
**Post date:** [April 21, 2022, 1:16pm UTC](https://forums.rocket.chat/t/ad-ldaps-with-encryption-enabled-fails-test-connection/13926/1 "2022-04-21T13:16:15Z")

</div>

### Description

I have a new setup of RC and am working on integrated LDAP sync with Active Directory.  
If I leave the settings at the default 389, Test Connection is successful.  
If I change the port to 636, the Test Connection is successful.  
If I change the port to 636 and enable Encryption to either StartTLS or SSL/LDAPS, the Test Connection fails.

I ran LDP.exe on the AD server and verified 636 is listening with a 256 cipher.

### Server Setup Information

- Version of Rocket.Chat Server: 4.6.2
- Operating System: Ubuntu 18.04
- Deployment Method: snap
- Number of Running Instances: 1
