core icon indicating copy to clipboard operation
core copied to clipboard

LDAP Login denied for new users with OC6.0.1 and Microsoft AD

Open abuzze opened this issue 12 years ago • 11 comments

We have something similar to Issue #6667. I see the spinners in the ldap wizard and cannot select anything. Although i see the configuration ok light is green and all users, who already logged in in the past, have no problems. But all new users in the Active Directory cannot login.

{"app":"core","message":"Login failed: user 'xxxxxx.xxxxxxxx' , wrong password, IP:set log_authfailip=true in conf","level":2,"time":"2014-01-23T14:33:44+00:00"}

While i have the ldap wizard open, i see this in the logs:

{"app":"PHP","message":"ldap_search(): Search: Operations error at /var/www/owncloud/apps/user_ldap/lib/ldap.php#141","level":2,"time":"2014-01-23T14:34:06+00:00"}

On the Users configuration page, it takes some time to load. Then i see only a few users and cannot scroll down.

I didn't found any solution in the issue tracker or via google.

abuzze avatar Jan 23 '14 14:01 abuzze

@blizzz

PVince81 avatar Jan 23 '14 17:01 PVince81

Any updates?

abuzze avatar Jan 29 '14 09:01 abuzze

Same problem with SLES11SP3, newest version from repository...

DMBrosig avatar Jan 30 '14 11:01 DMBrosig

We had the same problem. It now works here since we use sAMAccountName in the Login Filter.

StefanFl avatar Feb 03 '14 16:02 StefanFl

We had the same problem. It now works here since we use sAMAccountName in the Login Filter.

Err, you needed to adjust it manually?

blizzz avatar Feb 03 '14 16:02 blizzz

Yes, in the configuration dialog:

2014-02-03 18_10_12-owncloud

StefanFl avatar Feb 03 '14 17:02 StefanFl

For me the solution is "TLS_REQCERT never" in /etc/openldap/ldap.conf.

DMBrosig avatar Feb 03 '14 17:02 DMBrosig

@StefanFl well, ownCloud should find it out by itself. Could you do a new configuration, leave the Login Filter by default wit LDAP Username enabled and check what is configured automatically (by toggling raw filter)?

blizzz avatar Feb 04 '14 14:02 blizzz

@DMBrosig this you can also achieve by switching of certificate validation in the advanced settings, but the proper solution is to import the certificate.

blizzz avatar Feb 04 '14 14:02 blizzz

I fixed this problem for me, by changing the value for "UUID Attribute for Users" in the LDAP Wizard Experts tab from auto to objectGUID. Now, new users are created after the login. I think the auto detection had some issues.

abuzze avatar Feb 04 '14 14:02 abuzze

Sounds like a duplicate of https://github.com/owncloud/core/issues/6597

Please reopen if you think it is not.

blizzz avatar Feb 06 '14 13:02 blizzz