Openldap SSL/TLS Configuration
Hello,
I am attempting have owncloud utilize my openldap server for authentication. I have Owncloud 7 installed with a MySql database and I have an Openldap server setup. I have already enabled the app for ldap in owncloud. When I am inputting the information for the ldap on owncloud under the "User Filter" the information is blank. There is nothing to select there and same thing goes for the "Group Filter".
I opened up port 389 on my openldap server and can see some options now, but that is not how I am using openldap. I am using port 636 only. How can I configure open ldap to communicte with owncloud on port 636? Does the certificate need to be on the owncloud server? If so, how would I tell owncloud to use it for communication openldap?
Here is what I am getting in my owncloud logs:
{"app":"user_ldap","message":"Connection could not be established","level":3,"time":"2014-08-04T14:58:20+00:00"} {"app":"user_ldap","message":"Configuration Error (prefix ): No LDAP Login Filter given!","level":2,"time":"2014-08-04T14:58:35+00:00"} {"app":"user_ldap","message":"Configuration Error (prefix ): login filter does not contain %uid place holder.","level":2,"time":"2014-08-04T15:0
Here are my openldap logs: Aug 4 15:02:52 openldap-master slapd[30150]: conn=1020 fd=28 ACCEPT from IP=10.0.0.140:42968 (IP=0.0.0.0:636) Aug 4 15:02:52 openldap-master slapd[30150]: conn=1020 fd=28 TLS established tls_ssf=128 ssf=128 Aug 4 15:02:52 openldap-master slapd[30150]: conn=1020 fd=28 closed (connection lost)
Any ideas?
Thank you!
@blizzz
Did you see http://doc.owncloud.org/server/7.0/admin_manual/configuration/auth_ldap.html#ssl-certificate-verification-ldaps-tls ?
I have that now squared away however when a user logs in they are getting a blank page. I've created a testuser on my ldap and I'm getting the same thing.
Here's what is in my log:
{"app":"PHP","message":"Call to a member function getUsername() on a non-object at /var/www/owncloud/apps/user_ldap/user_ldap.php#69","level":3,"time":"2014-08-05T14:45:28+00:00"}
Anything on this? If it helps, I'm using Openldap.
I've seeing the same message on another issue report, alas i don't remember on which one exactly right now. to be dealt with.
You can look here and try the patch given on a comment down there. Please also state there whether that patch works for you, and let us move over there.