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

groupSearchFilter is not checking if the user is part of the group #100

Open
xanpri opened this issue Jun 17, 2022 · 0 comments
Open

groupSearchFilter is not checking if the user is part of the group #100

xanpri opened this issue Jun 17, 2022 · 0 comments

Comments

@xanpri
Copy link

xanpri commented Jun 17, 2022

I'm using the MeshCentral application and trying to configure ldap to use groups. But group authentication is not working.
I use Open LDAP to authenticate Linux systems and workstations.

Here's the configuration I'm using:

"ldapOptions": {
    "url": "URL",
    "bindDN": "USERBIND",
    "bindCredentials": "SUPERPASS",
    "searchBase": "ou=test,dc=DC,dc=DC,dc=br",
    "searchFilter": "(&(objectClass=posixAccount)(uid={{username}}))",
    "groupSearchBase": "ou=test,dc=DC,dc=DC,dc=br",
    "groupSearchFilter": "(&(objectClass=posixAccount)(cn=group1)(memberUid={{username}}))",
    "tlsOptions": { "rejectUnauthorized": false }
	},

Group1 data for groupSearchFilter search:

dn: cn=group1,ou=test,dc=DC,dc=DC,dc=br
cn: group1
gidNumber: 11111
objectClass: top
objectClass: posixGroup
memberUid: user1
memberUid: user2
memberUid: user3

What could I be doing wrong in the group consultation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant