MarkLogic 9 Product Documentation
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://.

Example


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

sec.externalSecuritySetLdapStartTls('ldapconfig', true);
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy