I’m using Gogs v0.11.43.0330 on Linux with SQLite. I have got LDAP Authentication working (Simple Bind and via BindDN).
My question is : User account setup in Gogs, with Authentication sources as LDAP, has entry of Email Address (mandatory) and “This account has administrator permissions” checkbox. Are the gogs values used in preference to LDAP values for “LDAP Email attribute” and resolved via “LDAP Admin Filter”?
The email address shown for the user is always the one configured in Gogs and not from LDAP
Following a successful user LDAP login - I see a successful admin check (as below) but the user does not have “Admin Panel” option in their user dropdown.
2018/05/07 11:15:44 [TRACE] Checking admin with filter '(memberof=cn=myadmin,cn=groups,cn=accounts,dc=company,dc=com)' and base 'uid=myuser,cn=users,cn=accounts,dc=company,dc=com'
Is there a way to make the LDAP settings for these override the user account settings or have I mis-understood the purposes of the LDAP fields?