[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: openldap default username/password?



On 01/28/12 08:19 +0200, Kwasi Gyasi - Agyei wrote:
Hi,

I'm trying to configure openldap using slapd.d style configuration, however
command:

#ldapadd -vxh localhost -D cn=admin,cn=config -w "" -f
/usr/local/conf/shared/openldap/init-config.ldif

fails with error

ldap_initialize( ldap://localhost )
ldap_bind: Server is unwilling to perform (53)
   additional info: unauthenticated bind (DN with no password) disallowed

#ldapadd -vxh localhost -f /usr/local/conf/shared/openldap/init-config.ldif

fails with error

ldap_initialize( ldap://localhost )
add objectClass:
   olcGlobal
add olcLogFile:
   /var/log/openldap/openldap.log
add olcLogLevel:
   -1
adding new entry "cn=config"
ldap_add: Strong(er) authentication required (8)
   additional info: modifications require authentication

any ideas?

Your slapd.d configuration should have been based on a slapd.conf file,
possibly included within your OS/Distro package (I'm assuming you didn't
compile it yourself).

You can use slapcat to obtain local access to your data. Use 'slapcat -n0'
to obtain the configuration database. If necessary, you can replace your
configuration with 'slapadd -n0'.

--
Dan White