MarkLogic 12 EA 1 Product Documentation
sec:role-set-external-names

sec:role-set-external-names(
   $role-name as xs:string,
   $external-name as xs:string*
) as empty-sequence()

Summary

This function sets a role to be matched to one or more external LDAP distinguished names.

Parameters
role-name The role to be set for the external user.
external-name A sequence of one or more external LDAP distinguished names to be associated with the named role.

Example


(: 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:role-set-external-names("admin", ("UID=joe,CN=Users,DC=MARKLOGIC1,DC=COM"))

(: Sets the external LDAP distinguished name for the "admin" role to 
   "UID=joe,CN=Users,DC=MARKLOGIC1,DC=COM". :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy