Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: jonash on January 30, 2014, 09:52:25 AM

Title: owncloud and authentication
Post by: jonash on January 30, 2014, 09:52:25 AM
Hi,
I am trying to install owncloud as described in http://wiki.contribs.org/OwnCloud, but Im not able to get LDAP to work. I got these errors when I try to login:
Code: [Select]
{"app":"user_ldap","message":"Connection could not be established","level":3,"time":"2014-01-30T08:42:40+00:00"}
{"app":"user_ldap","message":"Could not search, because resource is missing.","level":0,"time":"2014-01-30T08:42:40+00:00"}

I created a user in SME called ocadmin for the ldap connection, so User DN is  uid=ocadmin,dc=xxx,dc=yyy,dc=org. The password i correct too.

When I do a Test in Owncloud I get the message:
Code: [Select]
{"app":"user_ldap","message":"Bind failed: -1: Can't contact LDAP server","level":3,"time":"2014-01-30T08:45:46+00:00"}
{"app":"user_ldap","message":"Connection could not be established","level":3,"time":"2014-01-30T08:45:46+00:00"}

In the "Advanced Tab" for LDAP in owncloud, the port was already set to 389 and "Use TLS" is set.

I also tried the  IMAP authentication but then I get:
Code: [Select]
"app":"core","message":"User backend OC_User_IMAP not found.","level":3,"time":"2014-01-30T08:39:01+00:00"}

Any hints?

Thanks!

Jonas
Title: Re: owncloud and authentication
Post by: Daniel B. on January 30, 2014, 10:38:18 AM
your DN is wrong, you forgot ou=Users, it should be uid=ocadmin,ou=Users,dc=xxx,dc=yyy,dc=org

TLS is not needed when you contact the LDAP sevrice on the server itself: it just load CPU, and add complexity (certificate verification), just turn TLS off
Title: Re: owncloud and authentication
Post by: jonash on January 30, 2014, 10:45:11 AM
Yes, that was the error :-?

I had to uncheck TLS to make it work too.

Thank you!

JOnas