MarkLogic 12 EA 1 Product Documentation
sec.externalSecuritySetLdapPassword

sec.externalSecuritySetLdapPassword(
   external-security-name as String,
   ldap-password as String
) as null

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


declareUpdate();
const sec = require('/MarkLogic/security');

sec.externalSecuritySetLdapPassword('ldapconfig', 'secretword');

// Sets the password for the LDAP default user in the external authorization 
// configuration object, named 'ldapconfig', to 'secretword'
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy