On 22/4/04 8:37 am, Jonas Lind�n <[EMAIL PROTECTED]> wrote:
> 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.
>
> Regards
> /Jonas
You haven't specified the attribute to modify. Try:
$ldap->modify($myDN, add => {
'memberOf' => "CN=testgroup, OU=groups, DC=myomain, DC=com"
});
Cheers,
Chris