gpt4 book ai didi

authentication - 用户认证是否需要 LDAP 绑定(bind)帐户?

转载 作者:行者123 更新时间:2023-12-04 04:17:07 30 4
gpt4 key购买 nike

我正在为我的组织创建一个门户,我希望用户使用其组织帐户的 ID 和密码登录到该门户。
为此,我将 LDAP 身份验证与 Java 一起使用。
在阅读了很多文章后,我发现了以下认证步骤:

  • 使用某些绑定(bind)或技术帐户绑定(bind)到 LDAP 服务器
  • 在 LDAP 服务器中搜索尝试登录的用户详细信息
  • 尝试使用用户的专有名称和密码再次绑定(bind)到服务器。

  • 问题1:就这些吗?
    上述过程是否完全正确,还是因为我是新手程序员而遗漏了一些信息?绑定(bind)在概念上意味着什么?
    问题2:为什么要使用绑定(bind)账户?
    我想知道绑定(bind)帐户有什么需要?如果我直接尝试将 LDAP 服务器与用户的凭据绑定(bind),如果成功,那么我可以给他访问权限吗?
    我有 JXplorer我可以使用我自己组织的凭据连接到 LDAP 服务器的工具。所以我在想首先用其他帐户绑定(bind)到 LDAP 服务器需要什么?

    最佳答案

    question 1- Is the above process exactly correct



    是的。

    question 2- I wonder what is the need of binding account?



    是的。您需要搜索目录以找到用户 DN,并且您不希望一般未经身份验证的公众能够搜索目录。

    if directly I try to bind the ldap server with user's credential and if it is successful, then can I give him the access?



    您没有用户的凭据开始。你有他的登录名,或电子邮件地址,或 CN,或他用来标识自己的东西,但这只是某些条目的属性。您需要找到该条目并获取其 DN 以进行身份​​验证。

    I have jexplorer tool in which I am able to connect to LDAP server with my own organization's credentials. So i was thinking what is the need of first binding to LDAP server with some other account?



    往上看。您不希望用户必须像使用 JXplorer 那样记住他的整个 DN。

    关于authentication - 用户认证是否需要 LDAP 绑定(bind)帐户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25519666/

    30 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com