Skip to content

[BUG] LDAP cn not parsed correctly #188

@Politiezone-MIDOW

Description

@Politiezone-MIDOW

Describe the bug
When i try to allow certain groups i get the error that the user is not found in the group.
When looking in the logs, i get the error pasted below.

Expected behavior
The required should be CN=Whisper_Users,CN=Users,DC=midow,DC=local.
The same as i configured in the .env file.

I have tried the following:

  • LDAP_USER_GROUPS=CN=Whisper_Users
  • LDAP_USER_GROUPS=CN=Whisper_Users,CN=Users,DC=midow,DC=local
  • LDAP_USER_GROUPS="CN=Whisper_Users,CN=Users,DC=midow,DC=local"
  • LDAP_USER_GROUPS='CN=Whisper_Users,CN=Users,DC=midow,DC=local'
  • LDAP_USER_GROUPS=CN=Whisper_Users,CN=Users,DC=midow,DC=local

This DN is correct for sure, it is being retreived from the active directory as seen in the logs below.

Logs
WARNING:app.auth.ldap_auth:User test449416861 denied access - not a member of any required groups. User groups: ['CN=Whisper_Users,CN=Users,DC=midow,DC=local'], Required: ['CN=Whisper_Users', 'CN=Users', 'DC=midow', 'DC=local']

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions