I tried several modifications but still couldn't get it working. Can you or anyone else help please? What's wrong with my syntax? Thanks.
----- Original Message ----
From: Dieter Kluenter <email@example.com>
Sent: Saturday, April 19, 2008 4:27:20 AM
Subject: Re: Invalid syntax (21)
Luke Lee <firstname.lastname@example.org
> I encounter a situation where I couldn't find any syntax errors in my ldif file but failed to use
> ldapadd to add entries. I didn't find any trailing spaces at the end of each objectClass. The
> following is the error message:
> adding new entry "cn=LocalSales,ou=Netgroup,dc=mydomain,dc=com"
> ldapadd: Invalid syntax (21)
> additional info: nisNetgroupTriple: value #0 invalid per syntax
> My ldif file is like the
> dn: cn=LocalSales,ou=Netgroup,dc=mydomain,dc=com
> objectClass: nisNetgroup
> objectClass: top
> cn: LocalSales
> nisNetgroupTriple: (,luke_l,mydomain.com
> nisNetgroupTriple: (,sam_c,mydomain.com
> nisNetgroupTriple: (,amy_s,mydomain.com
> nisNetgroupTriple: (,anita_c,mydomain.com
> nisNetgroupTriple: (,jim_f,mydomain.com
> description: Local Sales
The nisnetgrouptriple syntax is described in RFC-2307 as follows:
Values in this syntax are represented by the following:
nisnetgrouptriple = "(" hostname "," username "," domainname ")"
hostname = "" / "-" /
username = "" / "-" / keystring
domainname = "" / "-" / keystring
See RFC-2307 for examples.
Dieter Klünter | Systemberatunghttp://www.dkluenter.de
GPG Key ID:8EF7B6C6