windows LDAP 是 TCP 协议还是 UDP 协议?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5913941/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:21:38  来源:igfitidea点击:

Is LDAP a TCP or a UDP protocol?

windowswindows-server-2003

提问by Arun Chand

I have got some wireshark captures, and it shows that it is UDP. But in theory it says that it uses both TCP and UDP. So I m confused. And what is the difference b/w LDAP and CLDAP? Are they both UDP protocols?

我有一些wireshark捕获,它表明它是UDP。但理论上它说它同时使用 TCP 和 UDP。所以我很困惑。b/w LDAP 和 CLDAP 有什么区别?它们都是UDP协议吗?

回答by ceving

Normally LDAP is a TCP protocol. But Microsoft uses LDAP also over UDP. See here: http://msdn.microsoft.com/en-us/library/cc717362(v=prot.10).aspx

通常 LDAP 是一个 TCP 协议。但微软也通过 UDP 使用 LDAP。请参阅此处:http: //msdn.microsoft.com/en-us/library/cc717362(v=prot.10).aspx

So it is both.

所以两者兼而有之。

回答by Xing Zhang

Lightweight Directory Access Protocol (LDAP) The Lightweight Directory Access Protocol: The protocol accessing data from directory services like OpenLDAP, Microsoft Active Directory, Netscape Directory Server or Novell eDirectory.

轻量级目录访问协议 (LDAP) 轻量级目录访问协议:访问来自目录服务(如 OpenLDAP、Microsoft Active Directory、Netscape Directory Server 或 Novell eDirectory)的数据的协议。

Protocol dependencies TCP/UDP: Typically, LDAP uses TCP or UDP (aka CLDAP) as its transport protocol. The well known TCP and UDP port for LDAP traffic is 389.

协议依赖 TCP/UDP:通常,LDAP 使用 TCP 或 UDP(又名 CLDAP)作为其传输协议。用于 LDAP 流量的众所周知的 TCP 和 UDP 端口是 389。

SSL/TLS: LDAP can also be tunneled through SSL/TLS encrypted connections. The well known TCP port for SSL is 636 while TLS is negotiated within a plain TCP connection on port 389.

SSL/TLS:LDAP 也可以通过 SSL/TLS 加密连接建立隧道。SSL 众所周知的 TCP 端口是 636,而 TLS 是在端口 389 上的普通 TCP 连接中协商的。

https://wiki.wireshark.org/LDAP

https://wiki.wireshark.org/LDAP