What is a quick test to see if TLS is working for OpenLDAP?

Updated -

There is a quick test to check if TLS is working for OpenLDAP or Directory Server. Use the following command--the two Z's force TLS. If it is not working, the command will fail.

ldapsearch -xZZ [any additional arguments]

This is the error that will return if TLS is not working:

ldap_start_tls: Protocol error (2) 
additional info: unsupported extend...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content