sec.externalSecuritySetLdapDefaultUser

sec.externalSecuritySetLdapDefaultUser(
   external-security-name as String,
   ldap-default-user as String
) as null

Summary

This function sets the default user name 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-default-user The name of the default user.

Required Privileges

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

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.externalSecuritySetLdapDefaultUser('ldapconfig', 'ldapuser1');

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