Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Ubuntu 10.04 (Lucid) OpenLDAP invalid credentials issue

The error first appear, on the line: "ldapsearch -xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase=hdb olcAccess"

It simply won't allow admin to access the "cn=config", thus you won't be able to deploy the LDAP server correctly.

On creating a config.ldif with dn: olcDatabase={0}config,cn=config changetype: modify add: olcRootDN olcRootDN: cn=admin,cn=config

dn: olcDatabase={0}config,cn=config changetype: modify add: olcRootPW olcRootPW: secret

dn: olcDatabase={0}config,cn=config changetype: modify delete: olcAccess

and adding it with ldapadd -Y EXTERNAL -H ldapi:/// -f config.ldif

I got the following error

unknown changetype "modify "

Please suggest what may be the problem.....

share|improve this question
    
Could you edit your post and format the LDIF content as a code sample to make it more readable (icon with "101/010" if you're not familiar with this site yet)? –  Bruno Sep 10 '10 at 12:55
    
your slapd.conf would be a nice addition here. –  Janne Pikkarainen Sep 10 '10 at 12:57
    
The version of OpenLDAP (2.4.21) that comes with Ubuntu 10.04 uses the new directory-based configuration (configurable with LDAP commands/LDIF), which makes it a bit harder to post the equivalent of slapd.conf. –  Bruno Sep 10 '10 at 13:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.