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

Re: Adding LDAP user to multiple groups

Thanks Quanah, I tried it with the following:

gidNumber: 1000
gidNumber: 1004
gidNumber: 1010

and got this error:

ldap_add: Constraint violation (19)
additional info: gidNumber: multiple values provided

Any ideas?

- Delamatrix

Quanah Gibson-Mount wrote:

--On Monday, March 27, 2006 5:15 PM -0600 Golden Butler <golden@cnt.org> wrote:


I'm trying to add a user to multiple groups using an ldif file. Here's
how I'm attempting to do so:

dn: uid=user,ou=people,dc=example,dc=org
cn: User Man
gidNumber: 1000, 1004, 1010

gidNumber: 1000 gidNumber: 1004 gidNumber: 1010

That's how you multi-value things in LDAP. Assuming gidNumber is multi valued, that should work.


objectClass: top
objectClass: posixAccount
objectClass: shadowAccount
objectClass: inetOrgPerson
sn: Man
uid: User
uidNumber: 1030

When I try to ldapadd this entry I get the following error:

adding new entry "uid=user,ou=people,dc=example,dc=org"
ldapadd: update failed: uid=user,ou=people,dc=example,dc=org
ldap_add: Invalid syntax (21)
additional info: gidNumber: value #0 invalid per syntax

Am I doing something wrong here? Thanks for any help in advance.

- Delamatrix

-- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html