Skip to content

Missing documentation for ldap.cache-ttl property in presto-password-authenticators #12598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions presto-docs/src/main/sphinx/security/ldap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Password authentication needs to be configured to use LDAP. Create an
password-authenticator.name=ldap
ldap.url=ldaps://ldap-server:636
ldap.user-bind-pattern=<Refer below for usage>
ldap.cache-ttl=2h

======================================================= ======================================================
Property Description
Expand All @@ -113,6 +114,10 @@ Property Description
must contain the pattern ``${USER}`` which will be
replaced by the actual username during the password
authentication. Example: ``${USER}@corp.example.com``.
``ldap.cache-ttl`` The time to cache the password authentication. This
property must be specified using a string, Example:
Use ``45s`` to set this property to 45 seconds.
Default value is ``1.00h`` (1 hour).
======================================================= ======================================================

Based on the LDAP server implementation type, the property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public Duration getLdapCacheTtl()
}

@Config("ldap.cache-ttl")
@ConfigDescription("The time to cache the password authentication. Example: 2.00h")
public LdapConfig setLdapCacheTtl(Duration ldapCacheTtl)
{
this.ldapCacheTtl = ldapCacheTtl;
Expand Down