skip to main |
skip to sidebar
OpenLDAP - Add initial entries
Most of us who have downloaded and installed OpenLdap face this issue. When ldapadd is used to add entries to the LDAP directory thru an LDIF file, we get the following error
adding new entry "dc=<MYDOMAIN>,dc=<COM> "ldap_add: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntaxThe root cause is that the sample LDIF file that accompanies the OpenLdap install has an extra space at the end of the objectclass syntax. Note the space after dc=<COM>. Trim the trailing space and the error is resolved.
2 comments:
That's interesting 'n'all, but the OpenLDAP Project doesn't include any sample LDIF file in our releases. You should talk to whoever provided your distribution and get them to fix it.
If you're going to complain about something, complain to someone who can actually do something about the problem.
Translating HYC's comment :-) ... we would have fixed it in OpenLDAP if it were something we shipped but there are no sample LDIF files shipped. So we can't fix it for the next person :-( ... Could you see if you can tell who put it together and one of us (you or us) can let them know to fix it.
Post a Comment