Loading TOC...

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

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