Loading TOC...

sec.externalSecuritySetLdapStartTls

sec.externalSecuritySetLdapStartTls(
   external-security-name as String,
   [ldap-start-tls as Boolean?]
) as null

Summary

This function updates the ldap-start-tls setting in the external security configuration.

Parameters
external-security-name The name of an external-security configuration.
ldap-start-tls When the ldap-bind-method is set to external, this parameter specifies whether to start TLS when connecting to an LDAP server. If set to true, the LDAP server URI should start with ldap:/ instead of ldaps://.

Required Privileges

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

Usage Notes

This function must be executed against the security database.

Example


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

sec.externalSecuritySetLdapStartTls('ldapconfig', true);
   

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