CFLDAP删除memberOf中的组

时间:2013-07-22 01:59:12

标签: coldfusion ldap cfml

有人可以帮我解决如何删除AD中memberOf中的组吗?这是对的吗?

<cffunction name="deleteMemberOfLDAPGroup" access="public" output="false" returntype="void">
    <cfargument name="UserDN" required="true" type="string" />
    <cfargument name="GroupDN" required="true" type="string" /> 
    <cfldap action="modify" 
        modifytype="delete"             
        attributes="member=#arguments.UserDN#" 
        dn="#arguments.GroupDN#" 
        separator="|"
        server = "myserver.com" 
        port="389"
        username="testuser"
        password="abc123" />    
</cffunction>

感谢。

0 个答案:

没有答案