每次使用ldapsearch -LLL……命令,就出現Can't contact LDAP server (-1)
《解決方案》
在/etc/hosts.allow中加入
localhost
127.0.0.1
如果還不行,我也不知道了,我也是新手,大家一起進步!
《解決方案》
我也有這個問題
root@ubuntu6s:~# ldapsearch -x -b 'ou=people,dc=example,dc=com' '(objectclass=*)'
ldap_bind: Can't contact LDAP server (-1)
root@ubuntu6s:~# ldapsearch -LLL "(sn=Smith)" cn sn mailldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)
root@ubuntu6s:~# netstat -anp|grep :389
tcp 0 0 192.168.100.98:47239 192.168.100.150:389 ESTABLISHED3526/winbindd
我所有的ldap操作都得到
Can't contact LDAP server (-1)
我的ubuntu6已經可以登錄到Win2003AD了,就是所有的命令都沒法用
《解決方案》
類似的問題誰有解決的,發上來說明一下吧。:em29:
《解決方案》
試試ldapsearch -x -b 'ou=people,dc=example,dc=com' -LLL '(sn=smith)'
看錯誤信息 是因為驗證的問題 主要是沒有加上-x (簡單認證)
[ 本帖最後由 tiamos 於 2008-1-23 23:37 編輯 ]