Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-47819

Add option to cache LDAP authentication credentials for native LDAP

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      When configuring LDAP authentication via saslauthd, the local saslauthd daemon can be configured to cache credentials in memory (default 8 hours).

      When using native LDAP authentication (which uses libldap) there is currently no caching of authentication. This means that every new connection with $external authentication for LDAP requires a roundtrip to the LDAP server. If an application is not pooling connections correctly, this can create considerable load on the LDAP server.

      Let's add a configuration parameter to configure the duration for caching user/passwords for native LDAP.

      Note that the parameter ldapUserCacheInvalidationInterval controls caching for LDAP authorization (i.e. group membership) and not password authentication.

            Assignee:
            backlog-server-security [DO NOT USE] Backlog - Security Team
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: