-
-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
# config.yaml auth section
auth:
ldap:
- provider_name: ldap_example
url: ldaps://ucs.example.com:636
start_tls: false
cert_validation: false
base_dn: dc=example,dc=com
bind_user: [email protected]
bind_pass: bindPassword
field_map:
user_identifier: sAMAccountName
email: mail
firstname: givenName
lastname: sn
memberof: memberOf
login_filter: (&(objectClass=organizationalPerson)(sAMAccountName={{login_identifier}})(memberOf=CN=vpn,CN=Groups,DC=example,DC=com))
admin_group: CN=Administrators,CN=Builtin,DC=example,DC=com
disable_missing: true
auto_re_enable: true
registration_enabled: trueuser1 failed to login: ldap provider not foundDescribe the bug
LDAP authentication fails when a memberOf filter is included in the filter expression. According to the event log wg-portal seems to be unable to query the LDAP service properly. The same filter expression works fine with ldapsearch command.
Expected behavior
wg-portal should process the filter expression correctly
Steps to reproduce
add a corresponding memberOf filter to your working filter expression
Screenshots
n/a
Additional context
- Application version: v2.0.5-0cc7ebb
- Install method: docker compose with lscr.io/linuxserver/wireguard:latest
- OS: Ubuntu Server 24.04
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working