Skip to content

LdapUser plugin should check the attribute values #3515

@vladak

Description

@vladak
Member

Another post-mortem related issue: During some 30 minutes the LDAP queries to particular server were failing for many different users like this:

31-Mar-2021 09:18:39.887 WARNING [http-nio-8080-exec-2290] opengrok.auth.plugin.LdapUserPlugin.fillSession failed to get LDAP attributes '[uid, mail]' for user User{id=XXX@foo.com, username=XXX@foo.com, cookieTimestamp=null, timeouted=false, attrs={}} with filter '(&(objectclass=person)(mail=XXX@foo.com)(uid=XXX@foo.com))' from LDAP provider {server=ldaps://ldap.foo.com, connect timeout: 2000, read timeout: 1000, username: cn=myadmin,ou=adminusers,dc=foo,dc=com, searchBase=dc=foo,dc=com}

The LDAP server pool has more than this server so it might make sense to fallback if the error count hits certain threshold (moving average ?). Or simply try to reconnect to the existing server.

Activity

vladak

vladak commented on Mar 31, 2021

@vladak
MemberAuthor

Actually, the problem here was in the LDAP filter: the uid=XXX@foo.com part should have login name, not e-mail address. The LdapUser plugin should check for that.

changed the title [-]fallback to another LDAP server in the pool if failures to lookup attributes hit a threshold[/-] [+]LdapUser plugin should check the attribute values[/+] on Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @vladak

        Issue actions

          LdapUser plugin should check the attribute values · Issue #3515 · oracle/opengrok