
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-certificateThis function must be executed against the security database.
declareUpdate();
const sec = require('/MarkLogic/security');
sec.externalSecuritySetLdapCertificate(
'ldapconfig',
sec.externalSecurityGetLdapCertificate('ldapconfig'),
sec.externalSecurityGetLdapPrivateKey('ldapconfig')
);
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.