Skip to main content
VeloDB Cloud 26.x is based on Apache Doris 4.x. See Version Mapping.

REFRESH LDAP

Note:

LDAP authentication requires a service-side configuration. Confirm its availability and configuration for your warehouse with VeloDB Cloud support before using this statement. Organization single sign-on is a separate feature.

Description​

This statement is used to refresh the cache information of LDAP in the warehouse. When modifying user information in the LDAP service or modifying the role permissions corresponding to LDAP user groups in the warehouse, the changes may not take effect immediately due to caching, and the cache can be refreshed through this statement.

Syntax​

REFRESH LDAP [ALL | FOR <user_name>];

Optional parameters​

1. [ALL]

Whether to refresh the LDAP cache information of all users.

2. <user_name>

The user whose LDAP cache information needs to be refreshed

Access control requirements​

Users executing this SQL command must have at least the following privileges:

PrivilegeObjectNotes
ADMIN_PRIVUser or RoleOnly users or roles with the ADMIN_PRIV permission can refresh the LDAP cache information of all users. Otherwise, they can only refresh the LDAP cache information of the current user

Usage notes​

  • The LDAP cache timeout is service-managed. If your SQL privileges permit it, inspect the configured value with SHOW FRONTEND CONFIG LIKE 'ldap_user_cache_timeout_s';.
  • REFRESH LDAP ALL refreshes the LDAP cache information of all users, but requires the ADMIN_PRIV permission.
  • If user_name is specified, the LDAP cache information of the specified user will be refreshed.
  • If user_name is not specified, the LDAP cache information of the current user will be refreshed.

Examples​

  1. Refresh the cache information of all LDAP users.

    REFRESH LDAP ALL;
  2. Refresh the cache information of the current LDAP user.

    REFRESH LDAP;
  3. Refresh the cache information of the specified LDAP user jack.

    REFRESH LDAP FOR jack;