[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How do I add a uniquemember: to a groupOfUniqueNames ?

At 11:48 AM 12/8/99 +0100, Nico De Ranter wrote:
>how can I add a member to groupOfUniqueNames using ldapmodify?
>I tried something like:
>ldapmodify -D "blabla" -w "blabla" < test.ldif
>where test.ldif contains:
>dn: cn=SysAdmin,ou=Groups,ou=SysAdmin,ou=Departments,o=mydomain
>changetype: modify
>uniquemember: uid=testuser,ou=People,ou=SysAdmin,ou=Departments,o=mydomain
>but I get:
>ldapmodify: Invalid parameter "uniquemember" specified for changetype modify (line 3 of entry cn=SysAdmin,ou=Groups,ou=SysAdmin,ou=Departments,o=mydomain
>I also tried with "add" in stead of modify (thinking I could "add" a field?) but
>then I get the message:
>ldap_add: Already exists

You are modifying an entry by adding an attribute value.  You need
to use the modify change type with add (or replace) change information.

dn: cn=SysAdmin,ou=Groups,ou=SysAdmin,ou=Departments,o=mydomain
changetype: modify
add: uniquemember
uniquemember: uid=testuser,ou=People,ou=SysAdmin,ou=Departments,o=mydomain

See slapd.replog(5) for further examples.

Kurt D. Zeilenga		<kurt@boolean.net>
Net Boolean Incorporated	<http://www.boolean.net/>