- 論壇徽章:
- 0
|
本帖最后由 freekongjian 于 2010-06-24 15:35 編輯
剛配的openldap server
本機查詢時報錯!
[root@localhost openldap]# ldapsearch -x
ldap_bind: Can't contact LDAP server (-1)
slapd.conf 配置如下:
database bdb
suffix "dc=sz5g,dc=com"
rootdn "cn=Manager,dc=sz5g,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoided. See slappasswd( and slapd.conf(5) for details.
# Use of strong authentication encouraged.
# rootpw secret
# rootpw {crypt}ijFYNcSNctBYg
rootpw {SSHA}7WL9RfilxqUtnJVZr8G2SCQwezbIXXMK
password-hash {MD5}
[root@localhost ~]# ps aux|grep slapd
ldap 3409 0.0 2.2 423384 2768 ? Ssl 07:43 0:00 /usr/sbin/slapd -h ldap:/// -u ldap
root 3434 0.0 0.5 3912 680 pts/0 S+ 07:54 0:00 grep slapd
[root@localhost ~]# netstat -anlp|grep slapd
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 3409/slapd
tcp 0 0 :::389 :::* LISTEN 3409/slapd
unix 2 [ ] DGRAM 31714 3409/slapd
[root@localhost ~]# ldapadd -x -D "cn=Manager,dc=sz5g,dc=com" -W -f base.ldif
Enter LDAP Password:
ldap_bind: Can't contact LDAP server (-1)
大家有沒有遇到過這個問題。!查了很多資料都沒有得到解決 |
|