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

Re: Adding LDAP user to multiple groups





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

Hi,

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.

--Quanah

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