2011-10-04 89 views
2

我目前安裝了OID(Oracle Internet Directory)並在其中創建了一些角色和用戶。我打算使用LDAP命令訪問它們。如何查找ldap服務器是否啓動並運行?

$ldapbind -p <port_number> -h <ip> -D "cn=orcladmin" 
bind sucessful 
$ ldapsearch -h <port_number> -p <ip> "dc=<name>" 
ldap_search: Inappropriate authentication 
ldap_search: additional info: Server is Configured to Deny Anonymous Binds 

有什麼我失蹤?

+0

你真正的問題是什麼?如果服務器未啓動,則無法獲得該消息。 – EJP

+0

那麼我打算使用LDAP cmd工具訪問所有在線目錄,只有綁定cmd似乎工作,其餘我不斷收到此錯誤。我如何解決它? PS:我正在使用Oracle Internet Directory – Rahul

+1

錯誤,提供與您對ldapbind所做的相同的身份驗證?你明白這些都是單獨的過程,並且在調用之間不保留任何狀態? – EJP

回答

1

在您的ldapsearch命令中,爲綁定的人添加-D "cn=orcladmin",在運行時爲-w "Password"-W添加提示。可能你想要一個-b "ou=Base,dc=DNtoSearch",然後按照你的過濾器。

您需要每次綁定。

+0

謝謝...它工作得很好。 – Rahul

相關問題