logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Adding information to a memberOf field?: msg#00057

Subject: Re: Adding information to a memberOf field?
On 22/4/04 8:37 am, Jonas Lindén <jonas.linden@xxxxxxxxxxxxx> 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





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>