Score:0

Error: Could not start TLS. Please check your LDAP server configuration. on PhpLdapAdmin

om flag
Ror

We have a LDAP server and we use phpldapadmin to manage it. I have not used it since a long time and when I try to login with my admin user, I get the following :

Could not start TLS. (LDAP Server)
Error: Could not start TLS. Please check your LDAP server configuration.

error   Unable to connect to LDAP server LDAP Server
Error: Can't contact LDAP server (-1) for user

error   Failed to Authenticate to server
Invalid Username or Password.

The LDAP server is working fine, I also verified the user's password and it's the right one. I can use that user to ldapsearch on the server on the command line.

The only thing I changed on this server recently was some iptables rules. It used to work perfectly fine so I don't really understand where the problem is. We use a let's encrypt certificate to connect to the ldap server. The server is under Debian 9 and phpldapadmin works with nginx.

EDIT

I've put PLA logs on debug mode and I don't get any more information than before. Nginx doesn't give me any errors in its logs either. I've tried the following command :

ldapsearch -ZZ -H ldap://ldap.mydomain.com -W -D cn=adminuser,dc=mydomain,dc=com -b dc=mydomain,dc=com

and it works fine. Also checking the ssl connection with :

openssl s_client -connect ldap.mydomain.com:636

returns the certificate.

I don't know if PLA can read ldap.conf

Score:0
om flag
Ror

The solution was so simple I couldn't even think about it. I restarted php7.0-fpm and it solved the problem.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.