• <small id='flGUA'></small><noframes id='flGUA'>

      <tfoot id='flGUA'></tfoot>
    1. <i id='flGUA'><tr id='flGUA'><dt id='flGUA'><q id='flGUA'><span id='flGUA'><b id='flGUA'><form id='flGUA'><ins id='flGUA'></ins><ul id='flGUA'></ul><sub id='flGUA'></sub></form><legend id='flGUA'></legend><bdo id='flGUA'><pre id='flGUA'><center id='flGUA'></center></pre></bdo></b><th id='flGUA'></th></span></q></dt></tr></i><div id='flGUA'><tfoot id='flGUA'></tfoot><dl id='flGUA'><fieldset id='flGUA'></fieldset></dl></div>

        <bdo id='flGUA'></bdo><ul id='flGUA'></ul>
        <legend id='flGUA'><style id='flGUA'><dir id='flGUA'><q id='flGUA'></q></dir></style></legend>

        PHP ldap - 需要强(er)身份验证

        时间:2024-08-23

        <small id='sOcRp'></small><noframes id='sOcRp'>

        <tfoot id='sOcRp'></tfoot>
            <tbody id='sOcRp'></tbody>

            <i id='sOcRp'><tr id='sOcRp'><dt id='sOcRp'><q id='sOcRp'><span id='sOcRp'><b id='sOcRp'><form id='sOcRp'><ins id='sOcRp'></ins><ul id='sOcRp'></ul><sub id='sOcRp'></sub></form><legend id='sOcRp'></legend><bdo id='sOcRp'><pre id='sOcRp'><center id='sOcRp'></center></pre></bdo></b><th id='sOcRp'></th></span></q></dt></tr></i><div id='sOcRp'><tfoot id='sOcRp'></tfoot><dl id='sOcRp'><fieldset id='sOcRp'></fieldset></dl></div>
              <legend id='sOcRp'><style id='sOcRp'><dir id='sOcRp'><q id='sOcRp'></q></dir></style></legend>
                <bdo id='sOcRp'></bdo><ul id='sOcRp'></ul>
                • 本文介绍了PHP ldap - 需要强(er)身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个执行 LDAP 连接、绑定和搜索的 PHP 脚本.它与大多数 Active Directory 服务器配合得很好,但是我们的一个客户遇到了问题.脚本返回

                  I have a PHP script which does a LDAP connect, bind and search. It is working very well with most of the Active Directory servers, however one of our clients has a problem. The script returns

                  Strong(er) authentication required.
                  

                  尝试 ldap_bind 时出错.

                  error when trying ldap_bind.

                  我所做的所有搜索都指向两个可能的问题:

                  All the searches I made directed me to two possible problems:

                  1. 我必须将 LDAP_OPT_PROTOCOL_VERSION 设置为 3 - 这是我之前做过和做过的,所以这不是我的问题.
                  2. AD 服务器被配置为使用 SSL 身份验证 - 但我们的客户坚持认为它是默认的 Windows 2008 R2 服务器安装,并且肯定不会默认使用 SSL.
                  1. I have to set LDAP_OPT_PROTOCOL_VERSION to 3 - which I do and did before, so this can not be my problem.
                  2. The AD server is configured to use SSL authentication - but our client insists that it is a default Windows 2008 R2 server installation, and that does not default to SSL for sure.

                  还有哪些其他原因会导致此错误发生?

                  What other causes could be for this error to happen?

                  Active Directory 服务器上需要 SSL ...

                  It was SSL required on Active Directory server ...

                  推荐答案

                  如果 Active Directory 服务器需要,您必须使用 ldaps://.如果是无效证书颁发机构的问题,您可以通过发出来忽略 windows 中的有效性

                  You have to use ldaps:// if it's required by the Active Directory server. If it's a problem with invalid certificate authority, you can ignore the validity in windows by issuing

                  putenv('LDAPTLS_REQCERT=never');
                  

                  在您的 php 代码中.在 *nix 中,您需要编辑您的 /etc/ldap.conf 以包含

                  in your php code. In *nix you need to edit your /etc/ldap.conf to contain

                  TLS_REQCERT never
                  

                  其他常见问题可以参考我的帖子PHP 无法连接到 LDAP Oracle Directory Server 企业版

                  For other common problems, you can refer to my post at PHP cannot connect to LDAP Oracle Directory Server Enterprise Edition

                  对于工作示例代码,您可以查看:使用 PHP 安全绑定到 Active Directory 的问题

                  For working example code, you can have a look at: Problems with secure bind to Active Directory using PHP

                  这篇关于PHP ldap - 需要强(er)身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:ldap_add():添加:对象类违规错误 下一篇:如果我不知道基本 DN 的 OU,如何使用 PHP ldap_search() 获取用户 OU

                  相关文章

                  1. <small id='LiGiH'></small><noframes id='LiGiH'>

                    <legend id='LiGiH'><style id='LiGiH'><dir id='LiGiH'><q id='LiGiH'></q></dir></style></legend>
                    <tfoot id='LiGiH'></tfoot>

                    • <bdo id='LiGiH'></bdo><ul id='LiGiH'></ul>

                    1. <i id='LiGiH'><tr id='LiGiH'><dt id='LiGiH'><q id='LiGiH'><span id='LiGiH'><b id='LiGiH'><form id='LiGiH'><ins id='LiGiH'></ins><ul id='LiGiH'></ul><sub id='LiGiH'></sub></form><legend id='LiGiH'></legend><bdo id='LiGiH'><pre id='LiGiH'><center id='LiGiH'></center></pre></bdo></b><th id='LiGiH'></th></span></q></dt></tr></i><div id='LiGiH'><tfoot id='LiGiH'></tfoot><dl id='LiGiH'><fieldset id='LiGiH'></fieldset></dl></div>