Skip to content

need help to retrieve groups from ldap #238

@matbr

Description

@matbr

Hi Andreas,

highly appreciate your work on this plugin.

I'm not sure if this is my fault or if still something is wrong with groups.

version Version 2.5.8
PHP 8.2
WP 6.3.1

I'm not able to retrieve groups from ldap (never tried before):

[04-Sep-2023 11:01:03 UTC] [AuthLDAP] User 'test.xxx' logging in
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] about to do LDAP authentication
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] connect to LDAP server
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] LDAP authentication successful
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] Existing user, uid = 5
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] Array
(
    [administrator] => XXXX
    [editor] => YYYY
    [author] => ZZZZ
    [contributor] =>
)
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] Array
(
    [administrator] => XXXX
    [editor] => YYYY
    [author] => ZZZZ
    [contributor] =>
)
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] Group Filter: "(uniqueMember=CN=test.xxx,CN=xxx,CN=users,OU=zzzz,DC=xxx,DC=de)"
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] Group Base: dc=xxx,dc=de
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] LDAP groups: []
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] Roles from LDAP group: []
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] no role yet, set default role
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] The LDAP user has an entry in the WP-Database
[04-Sep-2023 11:01:03 UTC] [AuthLDAP] user id = 5
[04-Sep-2023 11:04:38 UTC] [AuthLDAP] User '' logging in
[04-Sep-2023 11:04:38 UTC] [AuthLDAP] Username not supplied: return false
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] User 'test.xxx' logging in
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] about to do LDAP authentication
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] connect to LDAP server
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] LDAP authentication successful
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] Existing user, uid = 5
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] Existing user's role: subscriber
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] The LDAP user has an entry in the WP-Database
[04-Sep-2023 11:04:45 UTC] [AuthLDAP] user id = 5

As I'm not an LDAP expert I also tried different other filter:

[04-Sep-2023 10:29:56 UTC] [AuthLDAP] Group Filter: " (&(objectClass=posixGroup)(memberUid=%s))"
[04-Sep-2023 10:32:24 UTC] [AuthLDAP] Group Filter: "(&(objectClass=posixGroup)(memberUid=%s))"
[04-Sep-2023 10:38:38 UTC] [AuthLDAP] Group Filter: "memberUid=%s"
[04-Sep-2023 10:45:29 UTC] [AuthLDAP] Group Filter: "(&(|(objectclass=univentionGroup))(|(memberUid=%s)))"
[04-Sep-2023 10:49:07 UTC] [AuthLDAP] Group Filter: "(&(objectclass=univentionGroup)(memberUid=%s))"

This is one of the groups, the plugin should find...

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions