Loading TOC...

MarkLogic Server 11.0 Product Documentation
sec.externalSecuritySetLdapRemoveDomain

sec.externalSecuritySetLdapRemoveDomain(
   external-security-name as String,
   [ldap-remove-domain as Boolean?]
) as null

Summary

This function updates the ldap-remove-domain setting in the external security configuration.

Parameters
external-security-name The name of an external-security configuration.
ldap-remove-domain If set to true, the domain is removed from username before matching with ldap-attribute.

Required Privileges

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

Usage Notes

This function must be executed against the security database.

Example


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

sec.externalSecuritySetLdapRemoveDomain('ldapconfig', true);
   

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