sec:external-security-set-ldap-default-user( $external-security-name as xs:string, $ldap-default-user as xs:string ) as empty-sequence()
This function sets the default user name for the named external authorization
configuration object. This parameter is required if the protocol is
kerberos
and authorization is ldap
.
Parameters | |
---|---|
external-security-name | Name of the external authorization configuration object. |
ldap-default-user | The name of the default user. |
http://marklogic.com/xdmp/privileges/external-security-set-ldap-attribute
This function must be executed against the security database.
(: execute this against the security database :) xquery version "1.0-ml"; import module namespace sec = "http://marklogic.com/xdmp/security" at "/MarkLogic/security.xqy"; sec:external-security-set-ldap-default-user("ldapconfig", "ldapuser1") (: Sets the LDAP default user in the external authorization configuration object, named "ldapconfig", to "ldapuser1". :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.