The uniqueMember attribute in groupOfUniqueNames is (normally) mandatory,=
therefore attempting to add an entry with no values for uniqueMember is
an illegal operation.
>-- Original Message --
>From: "Phil Harley" <phi...@tn...>
>To: <per...@li...>
>Subject: create group error
>Date: Sat, 21 Sep 2002 11:28:30 -0500
>
>
>Hello all
> I am having trouble trying to create a groupofuniquenames in ldap using=
>Net::LDAP.
>
>I can create the group using the command line tools with a modfile like:=
> dn: cn=3Dmytest,o=3Dtnb.com
> changetype: add
> objectclass: top
> objectclass: groupofuniquenames
> cn: mtest
> description: mytestgroup
>
>
>
>
>my $result =3D $ldap->add ( 'cn =3D mytest, o=3Dtnb.com',
> attr =3D> [ 'cn' =3D> 'mytest',
> 'description' =3D> 'mytestgroup',
> 'objectclass' =3D> ['top',
>'groupofuniquenames'],
> ]
> );
>
> $result->code && warn "failed to add entry: ", $result->error ;
>
>
>But trying this code fails with Error msg
> Net::LDAP::Add=3DHASH(0x335414)
>Can't call method "code" without a package or object reference at
>./testaddg2 line 137
>
>I can add and delete members from a group if I create it with a modfile
>but I want a all Net::LDAP solution.
>
>Any ideas would be great.
>
>Thanks Phil...
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
|