MarkLogic 12 EA 1 Product Documentation
sec.externalSecuritySetAuthorization

sec.externalSecuritySetAuthorization(
   external-security-name as String,
   authorization as String
) as null

Summary

This function sets the authentication scheme for the named external authorization configuration object.

Parameters
external-security-name Name of the external authorization configuration object.
authorization The authorization scheme. Set to ldap for external authorization using an LDAP server, or internal to authorize using MarkLogic Server.

Required Privileges

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

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.externalSecuritySetAuthorization('ldapconfig', 'none');

// Sets the authorization in the external authorization configuration object,
// named 'ldapconfig', to 'none' (authorize using MarkLogic Server).
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy