Problem: LDAP connection between Wordpress not working

Hello!

I’ve got a problem with the LDAP connection between Wordpress and my LDAP base on UCS. I installed wordpress over the Univention Back End and copied it to a subfolder withing /var/www. The website reachable on www.schuelerinnenbuero.de is working fine. Then I realized that creating new users with any of the groups like Domain Admins,wordpress-editors,wordpress-authorswordpress-contributors,wordpress-subscribers have no effect on the wordpress wp-admin user registry. So obviously the LDAP connection doesn’t work as is is supposed to be.

My LDAP URI looks like:
ldap://cn=wordp-02639370,cn=memberserver,cn=computers,dc=schuelerinnenbuero,dc=intranet:[password]@ucs-5062.schuelerinnenbuero.intranet:7389/dc=schuelerinnenbuero,dc=intranet

I am also using nextcloud and kopano and the LDAP synchronisation works fine.

I honestly don’t now how to debug it properly so don’t blame me for not providing Logs.

Looking forward to your help! :slight_smile:

EDIT

I activated LdapDebugging on Wordpress and got following log within the wordpress folder

[25-Feb-2019 14:16:27 UTC] [AuthLDAP] The LDAP user has an entry in the WP-Database
[25-Feb-2019 14:16:27 UTC] [AuthLDAP] user id = 2
[25-Feb-2019 14:26:32 UTC] [AuthLDAP] User '' logging in
[25-Feb-2019 14:26:32 UTC] [AuthLDAP] Username not supplied: return false
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] User 'Administrator' logging in
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] about to do LDAP authentication
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] connect to LDAP server
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] LDAP authentication successfull
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] Existing user, uid = 2
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] Array
(
    [administrator] => Domain Admins
    [editor] => wordpress-editors
    [author] => wordpress-authors
    [contributor] => wordpress-contributors
    [subscriber] => wordpress-subscribers
)

[25-Feb-2019 14:26:40 UTC] [AuthLDAP] Array
(
    [administrator] => Domain Admins
    [editor] => wordpress-editors
    [author] => wordpress-authors
    [contributor] => wordpress-contributors
    [subscriber] => wordpress-subscribers
)

[25-Feb-2019 14:26:40 UTC] [AuthLDAP] Group Filter: "(&(objectClass=posixGroup)(memberUid=%s))"
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] LDAP groups: ["Domain Admins","Domain Users","DC Backup Hosts"]
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] Role from LDAP group: administrator
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] role from group mapping: administrator
[25-Feb-2019 14:26:40 UTC] PHP Notice:  Undefined index: user_nicename in /var/www/website/wordpress/wp-content/plugins/authldap/authLdap.php on line 378
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] The LDAP user has an entry in the WP-Database
[25-Feb-2019 14:26:40 UTC] [AuthLDAP] user id = 2

Ok at least it was no problem. I just had to log in to my wordpress site with new created accounts and then the LDAP Object gets authorized and is shown in wordpress.

Mastodon