MarkLogic 10 Product Documentation
sec.externalSecuritySetCacheTimeout

sec.externalSecuritySetCacheTimeout(
   external-security-name as String,
   cache-timeout as Number
) as null

Summary

This function sets the login cache timeout for the named external authorization configuration object.

Parameters
external-security-name Name of the external authorization configuration object.
cache-timeout The login cache timeout, in seconds.

Required Privileges

http://marklogic.com/xdmp/privileges/external-security-set-authentication

Usage Notes

This function must be executed against the security database.

Example


// Execute this against the security database.
declareUpdate();
const sec = require('/MarkLogic/security');

sec.externalSecuritySetCacheTimeout('ldapconfig', 600);

// Sets the login cache timeout in the external authorization configuration object,
// named "ldapconfig", to 600 seconds (10 minutes).
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy