Discussion:
dn: attribute type undefined
Robert Fitzpatrick
2003-08-10 16:18:13 UTC
Permalink
I am new to LDAP and would like to start by just converting my contacts
into an LDAP directory. My problem is with just trying the simple
OpenLDAP.org test, which returns the following:

# ldapadd -x -D "cn=Manager,dc=webtent,dc=org" -W -f ldaptest.ldif
Enter LDAP Password:
adding new entry "dc=example,dc=com"
ldap_add: Undefined attribute type
additional info: dn: attribute type undefined

ldif_record() = 17

Of course, I'm using my own domain, here is ldaptest.ldif file:

dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: My Organization Inc.
dc: example.com
dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager

My slapd.conf file includes these 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
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema

And this configuration:

database ldbm
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
rootpw test

This is all default installation except for the fact that I have replace
example and com with my domain and its tld. I've been searching the
archives and the 'net, but none of the problems I've found so far check
out.

--
Robert
Tony Earnshaw
2003-08-10 17:27:36 UTC
Permalink
Post by Robert Fitzpatrick
I am new to LDAP and would like to start by just converting my contacts
into an LDAP directory. My problem is with just trying the simple
# ldapadd -x -D "cn=Manager,dc=webtent,dc=org" -W -f ldaptest.ldif
adding new entry "dc=example,dc=com"
ldap_add: Undefined attribute type
additional info: dn: attribute type undefined
Ermmm ...

1: You do not give your software version;
Post by Robert Fitzpatrick
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
as base. Now you tell it to use dc=webtent,dc=org as base.

It is confused. You have lied to it. It doesn't like you. Make up your
mind :-)

*ALWAYS* give your software versions. If you do not, I for one shall
ignore you in all future postings

Tony
--
Tony Earnshaw

Looking backwards is always easy with hindsight

http://www.billy.demon.nl
Mail: ***@billy.demon.nl
Robert Fitzpatrick
2003-08-10 19:13:47 UTC
Permalink
Post by Tony Earnshaw
Post by Robert Fitzpatrick
I am new to LDAP and would like to start by just converting my contacts
into an LDAP directory. My problem is with just trying the simple
# ldapadd -x -D "cn=Manager,dc=webtent,dc=org" -W -f ldaptest.ldif
adding new entry "dc=example,dc=com"
ldap_add: Undefined attribute type
additional info: dn: attribute type undefined
Ermmm ...
1: You do not give your software version;
Post by Robert Fitzpatrick
suffix "dc=example,dc=com"
rootdn "cn=Manager,dc=example,dc=com"
as base. Now you tell it to use dc=webtent,dc=org as base.
It is confused. You have lied to it. It doesn't like you. Make up your
mind :-)
*ALWAYS* give your software versions. If you do not, I for one shall
ignore you in all future postings
Tony
Sorry, I actually looked it up and everything, but forgot to post with
the message (BTW RedHat 7.3/OpenLDAP 2.0.27) :\

The differences in the domain information was also a bit overlooked, I
actually copied the result of ldapadd from another console and attempted
to edit it for matching what I had tried.

Thanks to Peter off line for providing the solution, I was *not* leaving
a blank line in my ldif file.

--
Robert

Loading...