# Connection to ldap server cannot be established : TLS : host

**URL:** <https://forums.suse.com/t/connection-to-ldap-server-cannot-be-established-tls-host/23958>\
**Category:** SLES Networking\
**Created:** [May 11, 2013, 1:20pm UTC](https://forums.suse.com/t/connection-to-ldap-server-cannot-be-established-tls-host/23958 "2013-05-11T13:20:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linuxformat](https://avatars.discourse-cdn.com/v4/letter/l/a88e4f/32.png) [@linuxformat](https://forums.suse.com/u/linuxformat)\
**Post date:** [May 11, 2013, 1:20pm UTC](https://forums.suse.com/t/connection-to-ldap-server-cannot-be-established-tls-host/23958/1 "2013-05-11T13:20:18Z")

</div>

Hi

when i try to connect to the ldap server with out TLS it is working good but with TLS this message came (Connection to ldap server cannot be established : TLS : hostname dose not match CN in peer certificate ).

SO how can fix this problem .

Plz Help me

Thanks.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [May 15, 2013, 8:01pm UTC](https://forums.suse.com/t/connection-to-ldap-server-cannot-be-established-tls-host/23958/2 "2013-05-15T20:01:32Z")

</div>

Hi linuxformat,

> Connection to ldap server cannot be established : TLS : hostname dose not match CN in peer certificate  
> SO how can fix this problem .

configure a certificate within your LDAP server with a DN that matches the host name under which the LDAP server is accessed.

Regards,  
Jens
