>Hello, I am a bit of a newbie on perl-ldap but I have managed to commuicate >with my m$ active directory and been able to change a few value fields using >the ldap->add or ldap-modify > >But I havent been able to change the memberOf field. Can anyone give me a >hint on what I am doing wrong? > >ldap->modify($myDN, add => "CN=testgroup, OU=groups, DC=myomain, DC=com"); > >I get a (return code 53 : LDAP_UNWILLING_TO_PERFORM) error when trying to >perform this. >
AFAIK, you can't modify the memberOf attribute in Active Directory via LDAP. You modify the member attribute of the relevant group to contain the DN of the new member. The memberOf in the user member entry will then reflect the new group membership. Regards, Paul. >Regards >/Jonas ------------------------------------------------- Paul Connolly Consulting Architect Professional Services Critical Path 42-47, Lower Mount St., Dublin 2, Ireland +353 (0)87 238-1327 (Mobile) +353 (0)1 241-5152 (Direct) +353 (0)1 241-5170 (Fax) [EMAIL PROTECTED] www.criticalpath.net Critical Path A Global Leader in Digital Communications
