Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matching user name found for group member attribute "uniquemember". #19

Open
yasenv-code opened this issue Mar 17, 2020 · 6 comments
Labels
need info Extra information is required

Comments

@yasenv-code
Copy link

yasenv-code commented Mar 17, 2020

Hello Adam,

I have the following setup:

queries:
        baseDn:                         dc=awd-group,dc=tech

        userDn:                         ou=People
        userFilter:                     "(objectClass=inetOrgPerson)"
        userUniqueAttribute:            "cn"
        userMatchAttribute:             ~
        userNameAttribute:              "displayName"
        userEmailAttribute:             "mail"

        groupDn:                        "ou=Group"
        groupFilter:                    "(objectClass=groupOfUniqueNames)"
        groupUniqueAttribute:           "cn"
        groupMemberAttribute:           "uniqueMember"

And unfortunately I get this in the log:

[info] Found directory group "test-ldapgitlab".
[warning] Group #65 / member #1: Empty member attribute "uniquemember".
[warning] Group #65 / member #2: No matching user name found for group member attribute "uniquemember".
[warning] Group #65 / member #3: No matching user name found for group member attribute "uniquemember".
[notice] 0 directory group "test-ldapgitlab" member(s) recognised.

Where as you can see my LDAP has members.

image

@Adambean
Copy link
Owner

I'm pretty sure that @beharbunjaku implemented this in commit da977aa.

@Adambean
Copy link
Owner

Hi @yasenv-code, do you believe this is still an issue, or did the commit da977aa resolve this for you?

@Adambean Adambean added the need info Extra information is required label Nov 19, 2020
@iovcho
Copy link

iovcho commented Feb 12, 2021

Yep, I still have the same error too.

@Adambean
Copy link
Owner

I wonder if this is a case sensitive issue. Does your directly have case sensitive attribute names? (E.g. are "uid" and "Uid" considered different. Usually .not.)

@iovcho
Copy link

iovcho commented Feb 15, 2021

I wonder if this is a case sensitive issue. Does your directly have case sensitive attribute names? (E.g. are "uid" and "Uid" considered different. Usually .not.)

Thanks for fast reply. I think the problem is here, but I am not sure and I don't know how can I fix it:

image

The error is:
[warning] Group #1 / member #43: No matching user name found for group member attribute "uniquemember".

here is my config.yml
image

I think the problem is uniquemember and uniqueMember (case senitive issue) , but I am not sure 100% . I cannot find where can I fix it.

@Adambean
Copy link
Owner

Adambean commented Feb 15, 2021

Interesting. I use groupOfUniqueNames too (from 389-DS) but I'm using memberUid instead of uniqueMember as the group member attribute. I should be in a position to test this and get back to you.

My initial thought would be that when the group is being iterated for members it's finding only full DNs within uniqueMember instead of just lone user names that memberUid has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info Extra information is required
Projects
None yet
Development

No branches or pull requests

3 participants