Hi openldap comunnity,
i am having a hard time to populate my ldap server. Below is what i get:
etosha# ldapadd -x -D 'cn=Manager,dc=cpd,dc=ufv,dc=br' -W -f top.ldif Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN
etosha# cat top.ldif etosha# ldapadd -x -D 'cn=Manager,dc=cpd,dc=ufv,dc=br' -W -f top.ldif Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN etosha#
Does anybody have any ideia about what is going on?
Thanks.
--On Thursday, September 04, 2008 4:20 PM -0300 John Nietzsche john.nietzsche@gmail.com wrote:
Hi openldap comunnity,
i am having a hard time to populate my ldap server. Below is what i get:
etosha# ldapadd -x -D 'cn=Manager,dc=cpd,dc=ufv,dc=br' -W -f top.ldif Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN
etosha# cat top.ldif
You're trying to add a blank file? That doesn't work well.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
try it with the -c flag. :)
I have a feeling the first record already exists and it errors out and stops. The -c flag continues on error.
My second guess would be you have a space at the end of your entry in your ldif which will give you a similar error.
I have also seen a similar error with I believe it is cache corruption and the database isn't synced with the database cache, and deleting and readding the entry gets rid of that error.
But I could be wrong. It might not be any of those. :)
Sean
On Thu, 4 Sep 2008, John Nietzsche wrote:
Hi openldap comunnity,
i am having a hard time to populate my ldap server. Below is what i get:
etosha# ldapadd -x -D 'cn=Manager,dc=cpd,dc=ufv,dc=br' -W -f top.ldif Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN
etosha# cat top.ldif etosha# ldapadd -x -D 'cn=Manager,dc=cpd,dc=ufv,dc=br' -W -f top.ldif Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN etosha#
Does anybody have any ideia about what is going on?
Thanks.
-------------------------------------- Sean O'Malley, Information Technologist Michigan State University -------------------------------------
John Nietzsche writes:
etosha# ldapadd -x -D 'cn=Manager,dc=cpd,dc=ufv,dc=br' -W -f top.ldif Enter LDAP Password: ldap_bind: Invalid DN syntax (34) additional info: invalid DN
Your Bind DN contains an attribute unknown to slapd, presumably 'dc'.
Your slapd.conf must "include" at least schema/core.schema since that defines dc, and also the schema files that define whatever attributes and object classes you want to put in the directory.
openldap-software@openldap.org