Support Questions
Find answers, ask questions, and share your expertise

wrong attributeType when setting up OpenLDAP on Centos 7

wrong attributeType when setting up OpenLDAP on Centos 7

Explorer

Hi,

I am following this tutorial here:

https://community.hortonworks.com/articles/79806/how-to-setup-openldap-24-on-centos-7.html

But when I executed below CLI:

ldapmodify -Y EXTERNAL -H ldapi:/// -f db.ldif

I got this error:

SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldapmodify: wrong attributeType at line 5, entry "olcDatabase={2}hdb,cn=config"

Could someone help me troubleshoot? Thanks.

1 REPLY 1

Re: wrong attributeType when setting up OpenLDAP on Centos 7

Hi @Ho Chi
I realize this is an old post and you've likely gotten this working by now but looks like the post still receives enough views to seem relevant for a number of others.

I ran into the same when following the same tutorial, so to fix make sure that 1. there is no trailing whitespace on the line, and 2 that the file is in unix format (ex. open the file using vi and run :set ff=unix) to get rid of any carriage return characters.