Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何查找ldap服务器是否已启动并正在运行?_Ldap - Fatal编程技术网

如何查找ldap服务器是否已启动并正在运行?

如何查找ldap服务器是否已启动并正在运行?,ldap,Ldap,我目前已经安装了OID(Oracle Internet Directory),并在其中创建了一些角色和用户。我打算使用LDAP命令访问它们 $ldapbind -p <port_number> -h <ip> -D "cn=orcladmin" bind sucessful $ ldapsearch -h <port_number> -p <ip> "dc=<name>" ldap_search: Inappropriate auth

我目前已经安装了OID(Oracle Internet Directory),并在其中创建了一些角色和用户。我打算使用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
$ldapbind-p-h-D“cn=orcladmin”
捆绑成功
$ldapsearch-h-p“dc=”
ldap_搜索:不正确的身份验证
ldap_搜索:附加信息:服务器配置为拒绝匿名绑定

我有什么遗漏吗

在ldapsearch命令中,为要绑定的用户添加
-D“cn=orcladmin”
-w“Password”
-w
,以便在运行时提示。可能您需要一个
-b“ou=Base,dc=DNtoSearch”
,然后使用现有的过滤器


您每次都需要绑定。

您的实际问题是什么?如果服务器没有启动,您就无法收到该消息。我打算使用LDAP cmd工具访问所有在线目录,只有bind cmd似乎有效,其余的我一直收到此错误。我如何解决它?PS:我正在使用Oracle Internet DirectoryErr,提供与您对ldapbind相同的身份验证?您知道这些都是独立的进程,在调用之间不保留任何状态吗?那么我将如何解决这个问题。还有别的办法解决这个问题吗?我刚才已经回答了。