<tfoot id='FDwOy'></tfoot>

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

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

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

      1. 从 IE 中获取用户名,以针对 LDAP 进行身份验证

        时间:2024-08-23
            <tfoot id='6r0et'></tfoot>

            • <bdo id='6r0et'></bdo><ul id='6r0et'></ul>

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

                1. <small id='6r0et'></small><noframes id='6r0et'>

                  <legend id='6r0et'><style id='6r0et'><dir id='6r0et'><q id='6r0et'></q></dir></style></legend>
                  本文介绍了从 IE 中获取用户名,以针对 LDAP 进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  用户将只使用 IE,并且在 IE 中,如果他们登录到域控制器,它可以在不提示的情况下传递他们的凭据.

                  The users will only use IE, and within IE it can pass their credentials without being prompted to, if they are logged onto the domain controller.

                  我想知道的是,我该如何获取他们的用户名?

                  What I want to know is, how do I go about grabbing their username?

                  我认为这可以解决问题:$_SERVER['auth_user'];但没有运气.

                  I thought this would do the trick: $_SERVER['auth_user'];but no luck.

                  就像这样 你能不能得到一个 Windows (AD)PHP 中的用户名?

                  但我不知道捕获/获取用户用户名的代码应该是什么样子

                  But I don't know what the code should look like this to capture/grab the user's username

                  感谢任何帮助.

                  推荐答案

                  没有办法直接用php解决问题,但是可以借助javascript获取用户名:

                  There is no way to solve the problem in php directly, but you can obtain the username with the help of javascript:

                  <script type="text/javascript">
                  <!--
                  var WinNetwork = new ActiveXObject("WScript.Network");
                  alert(WinNetwork.UserName);
                  //-->
                  </script> 
                  

                  只需添加一些 AJAX ;)

                  Just add some AJAX ;)

                  HTH

                  这篇关于从 IE 中获取用户名,以针对 LDAP 进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:带有 cURL 的 PHP NTLM 会话 下一篇:从 php 针对 Active Directory/ISA 进行身份验证

                  相关文章

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

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

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