Loading TOC...

sec:external-security-set-ldap-password

sec:external-security-set-ldap-password(
   $external-security-name as xs:string,
   $ldap-password as xs:string
) as empty-sequence()

Summary

This function sets the default user password for the named external authorization configuration object. This parameter is required if the protocol is kerberos and authorization is ldap.

Parameters
external-security-name Name of the external authorization configuration object.
ldap-password The default user password.

Required Privileges

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

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-ldap-password("ldapconfig", "secretword")

(: Sets the password for the LDAP default user in the external authorization 
   configuration object, named "ldapconfig", to "secretword". :)
    

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