core icon indicating copy to clipboard operation
core copied to clipboard

[5.0 alpha 1] LDAP login not working

Open dirkuos opened this issue 13 years ago • 3 comments

I configured the ldap user and group backend. It seems that owncloud is now using the entryUUID instead of the uid to store the users. When I try to login with an ldap account, the browser only shows an empty page. Owncloud logs the following errors:

Warning PHP Undefined index: ldapAgentName at /var/www/html/owncloud/apps/user_ldap/lib/connection.php#298

Warning PHP Undefined index: ldapAgentPassword at /var/www/html/owncloud/apps/user_ldap/lib/connection.php#298

Fatal PHP SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'local::/mnt/scloud/owncloud/58b7abf6-176d-102d-888f-3d2427337baa' for key 'storages_id_index' at /var/www/html/owncloud/lib/db.php#847

Fatal PHP SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'local::/mnt/scloud/owncloud/58b7abf6-176d-102d-888f-3d2427337baa' for key 'storages_id_index' at /var/www/html/owncloud/lib/db.php#847

Dirk

dirkuos avatar Feb 13 '13 13:02 dirkuos

I configured the ldap user and group backend. It seems that owncloud is now using the entryUUID instead of the uid to store the users.

Exactly. Should not been a problem on upgrade, actually.

Regarding the warnings: do you use anonymous bind?

The fatal errors are caused by bug https://github.com/owncloud/core/issues/1486

blizzz avatar Feb 13 '13 19:02 blizzz

No, I'm using a binddn with a password.

dirkuos avatar Feb 14 '13 08:02 dirkuos

The warning are resolved with the Pull Request above, the fatal erros with https://github.com/owncloud/core/pull/1724

blizzz avatar Feb 16 '13 01:02 blizzz