是否可以通过LDAP发送LDAP“请求"?通过telnet? [英] Is it possible to send LDAP "requests" via telnet?

查看:293
本文介绍了是否可以通过LDAP发送LDAP“请求"?通过telnet?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以通过telnet(或某些其他程序)建立与LDAP服务器的连接,并像我通常使用HTTP一样开始发出请求并接收响应.实际上,这个问题更为笼统,与我对网络连接和通信协议的误解有关.让我告诉您关于该主题的想法:

I am wondering whether is it possible or not to establish a connection to a LDAP server via telnet (or some other program) and start making requests and receiving responses as I would normally do with HTTP. In fact, the question is more generic and is related to my misunderstanding of network connections and communications protocols. Let me tell you the idea I have in my mind about this topic:

所有应用程序协议都定义了通信协议(即服务器将理解的消息,并在其交付时采取行动).如果知道应用程序协议的工作原理,则可以建立与服务器的连接(控制该协议服务器端的守护程序)并开始与服务器通信.例如,使用HTTP时,我可以通过telnet建立与HTTP SERVER的连接,并开始与他对话,例如:

All application protocols define communication protocols (that is, messages that the server is going to understand and act upon its delivery). If I know how the application protocol works, I can establish a connection to the server (daemon controlling that protocol server-side) and start communicating with the server. For example with HTTP I can establish a connection to an HTTP SERVER via telnet and start talking with him with this requests for example:

GET /users/pepito HTTP/1.1
Host: stackoverflow
Content-Type: text/html

我期望任何应用程序协议都可以执行此过程.这个概念对吗?

我瞥见了 LDAP协议规范RFC ,但我不理解消息的格式.我的意思是,我希望阅读类似HTTP协议规范的内容.但这太笼统了.您能举个例子说明如何进行LDAP搜索吗?

I have glimpsed the LDAP Protocol Specification RFC but I did not understand the format of the messages. I mean, I was expecting to read something like HTTP Protocol Specification; but it was like too generic. Can you give me an example of how LDAP search could be made?

推荐答案

LDAP RFC指定LDAP消息是ASN1编码的.这意味着消息是采用特殊格式的二进制数据,而不是文本的特殊格式.这使得用telnet手动编写ladap查询变得非常困难.

The LDAP RFC specifies that LDAP messages are ASN1 encoded. This means the messages are binary data in a special format, instead of text, following a special format. This makes it very hard to write ladap-queries by hand with telnet.

这篇关于是否可以通过LDAP发送LDAP“请求"?通过telnet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆