如何使用MarkLogic XQuery从特定的LDAP组获取雇员列表?
You could use the xdmp:ldap-search()
method to search for users that belong to the specified group.
Something like this:
xdmp:ldap-search(
"(&(objectCategory=user)(memberOf=cn=MyCustomGroup))",
<options xmlns="xdmp:ldap">
<username>admin</username>
<password>admin</password>
<server-uri>ldap://dc1.mltest1.local:389</server-uri>
<search-base>CN=Users,DC=MLTEST1,DC=LOCAL</search-base>
</options>)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.