MarkLogic 9 Product Documentation
sec.externalSecuritySetLdapCertificate

sec.externalSecuritySetLdapCertificate(
   external-security-name as String,
   ldap-certificate as String,
   ldap-private-key as String
) as null

Summary

This function sets the LDAP certificate and private key for the named external security configuration.

Parameters
external-security-name The name of an external-security configuration.
ldap-certificate The PEM encoded X509 client certificate for MarkLogic server to connect the LDAP server. It can be used for mutual authentication if bind method is MD5 or simple. Or it can be used for external binding.
ldap-private-key The PEM encoded private key corresponding to the certificate.

Example


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

sec.externalSecuritySetLdapCertificate(
       'ldapconfig', 
       sec.externalSecurityGetLdapCertificate('ldapconfig'),
       sec.externalSecurityGetLdapPrivateKey('ldapconfig') 
);
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy