sec.externalSecuritySetLdapCertificate( external-security-name as String, ldap-certificate as String, ldap-private-key as String ) as null
This function sets the LDAP certificate and private key for the named external security configuration.
http://marklogic.com/xdmp/privileges/external-security-set-ldap-certificate
This function must be executed against the security database.
declareUpdate(); const sec = require('/MarkLogic/security'); sec.externalSecuritySetLdapCertificate( 'ldapconfig', sec.externalSecurityGetLdapCertificate('ldapconfig'), sec.externalSecurityGetLdapPrivateKey('ldapconfig') );