<bdo id='N1pi9'></bdo><ul id='N1pi9'></ul>

      1. <legend id='N1pi9'><style id='N1pi9'><dir id='N1pi9'><q id='N1pi9'></q></dir></style></legend>

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

        Windows 上的 LDAP 身份验证

        LDAP Authentication on Windows(Windows 上的 LDAP 身份验证)
          <tfoot id='pL5Vw'></tfoot>

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

          • <i id='pL5Vw'><tr id='pL5Vw'><dt id='pL5Vw'><q id='pL5Vw'><span id='pL5Vw'><b id='pL5Vw'><form id='pL5Vw'><ins id='pL5Vw'></ins><ul id='pL5Vw'></ul><sub id='pL5Vw'></sub></form><legend id='pL5Vw'></legend><bdo id='pL5Vw'><pre id='pL5Vw'><center id='pL5Vw'></center></pre></bdo></b><th id='pL5Vw'></th></span></q></dt></tr></i><div id='pL5Vw'><tfoot id='pL5Vw'></tfoot><dl id='pL5Vw'><fieldset id='pL5Vw'></fieldset></dl></div>
          • <legend id='pL5Vw'><style id='pL5Vw'><dir id='pL5Vw'><q id='pL5Vw'></q></dir></style></legend>
                <tbody id='pL5Vw'></tbody>
              • <bdo id='pL5Vw'></bdo><ul id='pL5Vw'></ul>

                  本文介绍了Windows 上的 LDAP 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我安装了 64 位 Windows 平台和 Postgresql 8.4(作为 Apache,EnterpriseDB-ApachePHP 安装在 Pstgres 上).我需要使用 Active Directory(或 LDAP?)凭据对系统进行身份验证,但即使我启用了 LDAP 和在 error 日志上重新启动 Apache 我看到 PHP 致命错误:在 path/to/my/phpfile 中调用未定义函数 ldap_connect().. PHP我使用的脚本如下,

                  i have an 64 bit Windows Platform and Postgresql 8.4 installed(as Apache, EnterpriseDB-ApachePHP is installed on Pstgres).. I need to authenticate to system using Active Directory(or LDAP?) credentials but even tough i enabled LDAP and restarted Apache on error log i see PHP Fatal error: Call to undefined function ldap_connect() in path/to/my/phpfile.. PHP script i use is below,

                  <?php
                  
                  $user = $_POST["myUserName@mydomain.com"];
                  $pass = $_POST["muPassword"];
                  //in our system, we already use this account for LDAP authentication on the server above
                  $ldap_serv = 'ldap://192.168.69.10';
                  $ldap_port = '389';
                  $lc = ldap_connect($ldap_serv, $ldap_port);
                  ldap_set_option($lc, LDAP_OPT_REFERRALS, 0);
                  ldap_set_option($lc, LDAP_OPT_PROTOCOL_VERSION, 3);
                  $ldapbind = ldap_bind($lc,$user,$pass);
                  if ($ldapbind == false) {
                    echo 'username or password is wrong';
                  }
                  else
                  {
                  echo "You Logged in";
                  echo "<br><br><br>Wellcome<br><br><br>";
                  }
                  ?>
                  

                  推荐答案

                  使用 LDAP 函数需要 PHP LDAP 扩展.只需检查它在您的 php.ini (extension=php_ldap.dll) 中是否未注释即可

                  The PHP LDAP extension is required to use LDAP functions. Just check it's uncommented in your php.ini (extension=php_ldap.dll)

                  这篇关于Windows 上的 LDAP 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  smtp gmail server php mailer not working(smtp gmail服务器php邮件程序不工作)
                  Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)
                      <tbody id='pijGu'></tbody>
                    <i id='pijGu'><tr id='pijGu'><dt id='pijGu'><q id='pijGu'><span id='pijGu'><b id='pijGu'><form id='pijGu'><ins id='pijGu'></ins><ul id='pijGu'></ul><sub id='pijGu'></sub></form><legend id='pijGu'></legend><bdo id='pijGu'><pre id='pijGu'><center id='pijGu'></center></pre></bdo></b><th id='pijGu'></th></span></q></dt></tr></i><div id='pijGu'><tfoot id='pijGu'></tfoot><dl id='pijGu'><fieldset id='pijGu'></fieldset></dl></div>

                      1. <legend id='pijGu'><style id='pijGu'><dir id='pijGu'><q id='pijGu'></q></dir></style></legend>
                        • <bdo id='pijGu'></bdo><ul id='pijGu'></ul>

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

                            <tfoot id='pijGu'></tfoot>