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

Re: Problem - ldapadd invalid syntex (21)



Dieter Kluenter wrote:
Bruno Steven<aspenbr@gmail.com>  writes:

Hello

I am newbie in use OpenLdap , I have simple problem I can´t add structure of
tree directory, the file org.lidf show my structure

dn: dc=labcom,dc=factory
objectClass: top
objectClass: dcObject
#objectClass: organization
dc: labcom
o : Linuxtech

When I type this command

  ldapadd -f /etc/openldap/lidfs/org.ldif  -x -D "cn=adm,dc=labcom,dc=factory"
-W

Show this message error

Enter LDAP Password:
adding new entry "dc=labcom,dc=factory "
ldapadd: Invalid syntax (21)

Why this message error ?

Because your ldif file is wrong.

Yes, but you've missed the actual problem.

1. a comment is not allowed within an entry

False.

2. objectClass dcobject is only an auxiliary class.

That would cause a different error than Invalid syntax.

Note the space at the end of the "adding new entry" message...

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/