I've setup dokuwiki in my workplace. I'd like to set the authentication to LDAP but I don't manage to get it to work. My company is using OpenLDAP.
I'm not sure if it's even possible since I probably don't have enough information about the LDAP settings. On our FTP server we use .htaccess to for authentication
AuthType Basic
AuthName "Authentication"
AuthAuthoritative off
AuthLDAPURL "ldap://ldapref.domain.xx.xy/dc=domain,dc=xx,dc=xy?uid"
require valid-user
I always get the following error:
LDAP: couldn't connect to LDAP server
I was hoping I could somehow simply use the .htaccess settings in dokuwiki to authenticate through LDAP.
Is this possible?
Use the
ldapsearch
tool to verify that the host upon which the LDAP client is running can access the server, and further that the LDAP client can authenticate. Use something to the effect of:The above command assumes the legacy OpenLDAP search syntax since the question mentioned OpenLDAP.
If the search succeeds then the LDAP client should be able to connect and authenticate with the same parameters. Ideally, the
ldapsearch
tool should be executed upon the same system which will authenticate to the LDAP server.see also