如何查找ldap服务器是否启动并运行?
问题描述:
我目前安装了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
有什么我失踪?
答
在您的ldapsearch命令中,为绑定的人添加-D "cn=orcladmin"
,在运行时为-w "Password"
或-W
添加提示。可能你想要一个-b "ou=Base,dc=DNtoSearch"
,然后按照你的过滤器。
您需要每次绑定。
+0
谢谢...它工作得很好。 – Rahul
你真正的问题是什么?如果服务器未启动,则无法获得该消息。 – EJP
那么我打算使用LDAP cmd工具访问所有在线目录,只有绑定cmd似乎工作,其余我不断收到此错误。我如何解决它? PS:我正在使用Oracle Internet Directory – Rahul
错误,提供与您对ldapbind所做的相同的身份验证?你明白这些都是单独的过程,并且在调用之间不保留任何状态? – EJP