Loading TOC...

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.

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") 
)
 
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.