Skip to content

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

@xanpri

Description

@xanpri

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?

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