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 ?
I have include the follow schemas
include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema
The process slapd have been started by user root, so haven´t problem of permission
That is ...
Thanks
Why did you comment out objectClass: organization?
On Fri, Jul 24, 2009 at 7:10 AM, Bruno Steven aspenbr@gmail.com wrote:
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 ?
I have include the follow schemas
include /etc/openldap/schema/core.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/nis.schema
The process slapd have been started by user root, so haven´t problem of permission
That is ...
Thanks
-- Bruno Steven - Administrador de sistemas. LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 https://www.lpi.org/caf/Xamman/certification
MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100 https://mcp.microsoft.com/authenticate/validatemcp.aspx
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. 1. a comment is not allowed within an entry 2. objectClass dcobject is only an auxiliary class.
-Dieter
Sorry, I removed '#' for commentary, the problem continues. some other idea ? thanks for all
On 7/24/09, Dieter Kluenter dieter@dkluenter.de 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.
- a comment is not allowed within an entry
- objectClass dcobject is only an auxiliary class.
-Dieter
-- Dieter Klünter | Systemberatung http://dkluenter.de GPG Key ID:8EF7B6C6 53°08'09,95"N 10°08'02,42"E
Bruno Steven aspenbr@gmail.com writes:
Sorry, I removed '#' for commentary, the problem continues. some other idea ? thanks for all
On 7/24/09, Dieter Kluenter dieter@dkluenter.de 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
Remove the space, if it is not a cut and paste typo, it should be o: Linuxtech
-Dieter
Dieter Kluenter wrote:
Bruno Stevenaspenbr@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.
- a comment is not allowed within an entry
False.
- 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...
openldap-technical@openldap.org