additional info: dn: attribute type undefined [solved]


[root@google openldap]# /usr/bin/ldapadd -a -x -D 'cn=Manager,dc=ldap,dc=google,dc=com' -W -f ldap-init.ldif
Enter LDAP Password:
ldapadd: attributeDescription "dn": (possible missing newline after line 5 of entry "dc=ldap,dc=google,dc=com"?)
adding new entry "dc=ldap,dc=google,dc=com"
ldapadd: Undefined attribute type (17)
additional info: dn: attribute type undefined

this error because show because you miss space line between your dn record. in my example above your config should be


[root@google openldap]# cat ldap-init.ldif
dn: dc=ldap,dc=google,dc=com
objectclass: dcObject
objectclass: organization
o: Servidor LDAP ldap
dc: ldap
dn: cn=Manager,dc=ldap,dc=google,dc=com
objectclass: organizationalRole
cn: Manager

you need to add space between ‘dn’ record. change it to


[root@google openldap]# cat ldap-init.ldif
dn: dc=ldap,dc=google,dc=com
objectclass: dcObject
objectclass: organization
o: Servidor LDAP ldap
dc: ldap

dn: cn=Manager,dc=ldap,dc=google,dc=com
objectclass: organizationalRole
cn: Manager

edit your config like above and save your work. then add your ldap first init

[root@google openldap]# /usr/bin/ldapadd -a -x -D 'cn=Manager,dc=ldap,dc=google,dc=com' -W -f ldap-init.ldif
Enter LDAP Password:
adding new entry "dc=ldap,dc=google,dc=com"

adding new entry "cn=Manager,dc=ldap,dc=google,dc=com"

One thought on “additional info: dn: attribute type undefined [solved]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s