hi all,
I 'm install slapd follow bellow steps in ubuntu 10.04 lucid strictly:
1. apt-get install slapd
* slapd -V
@(#) $OpenLDAP: slapd 2.4.21 (Aug 10 2010 17:08:36) $
buildd@yellow:/build/buildd/openldap-2.4.21/debian/build/servers/slapd*
2. dpkg-reconfigure slapd
3.edit /etc/ldap/slapd.d/cn\=config.ldif
4. cat /etc/ldap/slapd.d/cn\=config.ldif
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /var/run/slapd/slapd.args
olcLogLevel: none
olcPidFile: /var/run/slapd/slapd.pid
structuralObjectClass: olcGlobal
dn: olcDatabase=bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcBdbConfig
olcDatabase: bdb
olcSuffix: "dc=cg,dc=scsio,dc=ac,dc=cn"
olcDbDirectory: /home/az/openldap-data
olcRootDN: "cn=Manager,dc=cg,dc=scsio,dc=ac,dc=cn"
olcRootPW: secret
4. /etc/init.d/slapd restart
All step're OK,then I run bellow to test it:
5. ldapsearch -x -D "cn=Manager,dc=cg,dc=scsio,dc=ac,dc=cn" -w "secret"
-H ldap://cg.scsio.ac.cn
and it show that error:
*ldap_bind: Invalid credentials (49)
**I try again and again,but it'still the same.( using slappasswd to
change it also turn to same problem).
I wonder what's go wrong.any help would be greatly appreciated.Thank you
in advance!
**
*