sec.externalSecuritySetAuthorization( external-security-name as String, authorization as String ) as null
This function sets the authentication scheme for the named external authorization configuration object.
http://marklogic.com/xdmp/privileges/external-security-set-authorization
This function must be executed against the security database.
// Execute this against the security database. declareUpdate(); const sec = require('/MarkLogic/security'); sec.externalSecuritySetAuthorization('ldapconfig', 'none'); // Sets the authorization in the external authorization configuration object, // named 'ldapconfig', to 'none' (authorize using MarkLogic Server).
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.