📜  LDAP和OAuth 2之间的区别

📅  最后修改于: 2021-08-27 18:03:12             🧑  作者: Mango

1.轻型目录访问协议(LDAP):
LDAP代表轻型目录访问协议。它是一种协议,用于在网络中查找任何人以查找个人,组织和其他设备,而不管其位于公共Internet还是公司Internet上。它用作目录即服务,是Microsoft建立活动目录的基础。

LDAP的功能:

  • 它实现了具有灵活体系结构的开源协议。
  • 直接通过TCP / IP和SSL操作。
  • LDAP是一种自动协议。
  • 提供跨行业的广泛支持。

2. OAuth 2:
顾名思义,OAuth是一个授权框架,可帮助通过HTTP服务向其帐户上的用户授予有限的访问权限。当用户请求访问资源时,将在身份验证令牌传递后进行API调用。

OAuth 2的功能:

  • 它是一种灵活的协议,无需使用用户凭据即可进行访问。
  • 易于实现。
  • 它提供服务器端的代码授权。
  • 它提供了强大的身份验证。

LDAP和OAuth之间的区别:

S.No. LDAP OAuth 2
1. It is short called as Lightweight Directory Access Protocol. It is called as OAuth 2.
2. LDAP is used for authorizing the details of the records when accessed. It is used for authentication user credential as on Server Side.
3. It is not open-source but it possesses implementation such as Open LDAP which are open-source. It is an open standard for access delegation.
4. It supports two-factor authentication with RADIUS protocol. It provide two-way authentication, and can tell you about the number of attributes of user.
5. LDAP appends authentication in two options SASL or anonymous authentication. OAuth provides authentication by access token called as network tokens.
6. It renders authentication in multi-tier applications. It provides authentication in multi-tier applications.