Hi,
 
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 following:
 
#
# LocalSales
#
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
 
#
# Corporate Accountants
#
dn: cn=CorpAcct,ou=Netgroup,dc=mydomain,dc=com
objectClass: nisNetgroup
objectClass: top
cn: CorpAcct
nisNetgroupTriple: (,hannah_m,mydomain.com)
nisNetgroupTriple: (,judy_j,mydomain.com)
description: Corporate Accountants
 
I have included the following schema files in my slapd.conf:
 
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema
Could anyone please help resolve the above problem? Thanks.
 
Luke



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.