The LDAP group name in config.yaml is case-sensitive and doesn't accept only CN

Author: ShumaDKCreated Sep 30, 2026Updated Sep 30, 2026

Description I added LDAP auth method to config and got a problem with authenticating.

Expected behaviour Documentation shows that restriction to specific user groups is case-insensitive and can use CN value: https://filebrowserquantum.com/en/docs/configuration/authentication/ldap/#restrict-to-specific-groups

What is happening instead? In fact it works only if the group name is case-sensitively equal to the string in the config.yaml - if not I get the error: 2026/09/30 17:59:31←[2;37m [DEBUG] write.go:135: ldap auth failed, calling password auth user is not in allowed groups←[0m

Additional context The code is: if userGroup == allowedGroup { allowed = true }

How to reproduce?

Files

Source: gtsteffaniak/filebrowser