Loading TOC...

sec:external-security-set-cache-timeout

sec:external-security-set-cache-timeout(
   $external-security-name as xs:string,
   $cache-timeout as xs:unsignedInt
) as empty-sequence()

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.

Example


(: execute this against the security database :)
xquery version "1.0-ml"; 
 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";
 
sec:external-security-set-cache-timeout("ldapconfig", 600)

(: Sets the login cache timeout in the external authorization configuration object,
   named "ldapconfig", to 600 seconds (10 minutes). :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.