MarkLogic Server 11.0 Product Documentation
sec:external-security-set-ldap-certificate

sec:external-security-set-ldap-certificate(
   $external-security-name as xs:string,
   $ldap-certificate as xs:string,
   $ldap-private-key as xs:string
) as empty-sequence()

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.

Required Privileges

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

Usage Notes

This function must be executed against the security database.

Example



xquery version "1.0-ml"; 
 
import module namespace sec = "http://marklogic.com/xdmp/security" 
      at "/MarkLogic/security.xqy";

sec:external-security-set-ldap-certificate(
       "My-External-Security", 
       sec:external-security-get-ldap-certificate("My-External-Security")
       sec:external-security-get-ldap-private-key("My-External-Security") 
)
 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy