<tfoot id='HC2CK'></tfoot>

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

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

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

    1. 如何使用 JavaScript 进行 LDAP 查询?

      How do I do an LDAP query with JavaScript?(如何使用 JavaScript 进行 LDAP 查询?)
        <i id='uBsF4'><tr id='uBsF4'><dt id='uBsF4'><q id='uBsF4'><span id='uBsF4'><b id='uBsF4'><form id='uBsF4'><ins id='uBsF4'></ins><ul id='uBsF4'></ul><sub id='uBsF4'></sub></form><legend id='uBsF4'></legend><bdo id='uBsF4'><pre id='uBsF4'><center id='uBsF4'></center></pre></bdo></b><th id='uBsF4'></th></span></q></dt></tr></i><div id='uBsF4'><tfoot id='uBsF4'></tfoot><dl id='uBsF4'><fieldset id='uBsF4'></fieldset></dl></div>

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

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

            <legend id='uBsF4'><style id='uBsF4'><dir id='uBsF4'><q id='uBsF4'></q></dir></style></legend>
                <bdo id='uBsF4'></bdo><ul id='uBsF4'></ul>
                本文介绍了如何使用 JavaScript 进行 LDAP 查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试制作一个具有 LDAP 查询功能的侧边栏小工具,但找不到非常好的或任何有用的文档.我对 Javascript 的经验并不丰富,对 LDAP 查询的功能知之甚少,因此任何信息都会很有用.

                I'm trying to make a sidebar gadget that has an LDAP query function but haven't been able to find very good, or any, useful documentation on the matter. I'm not hugely experienced with Javascript and know little to nothing about how LDAP queries function, so any information at all would be useful.

                信息:

                • 主持人:a.b.c.d.e
                • 端口:389
                • ou:人
                • o: x_y_z
                • c:我们

                第一个片段:

                var sSearchURL = "ldap://a.b.c.d.e:389/o=x_y_z,c=us";
                var URLsuffix = "dc=" + form.SearchData.value;
                document.location = sSearchURL URLsuffix;
                

                其他片段:

                var ldap = GetObject('LDAP:');
                var ad = ldap.OpenDSObject(
                  'LDAP://a.b.c.d.e:389/o=x_y_z',
                  'cn=Administrator,ou=People,o=rootname',
                  'password',
                  0
                );
                

                推荐答案

                只要你想在网络浏览器中运行你的 JavaScript,你就受限于 HTTP 协议和你的脚本被加载的域.第一名.

                As long as you want to run your JavaScript in a web browser, you are limited to the HTTP protocol and to the domain from which your script was loaded in the first place.

                因此,无法从 Web 浏览器 JavaScript 引擎与 LDAP 服务器通信.

                So, talking to an LDAP server will not be possible from a web browsers JavaScript engine.

                有些 JavaScript 运行时环境限制较少,您可以在其中实现套接字服务器和客户端.对于 LDAP 连接,您必须编写自己的库或找到一些现有的库.

                There are JavaScript runtime environments that have less limitations where you can implement socket servers and clients. For LDAP conenctivity you'd have to write your own library or find some existing one.

                这篇关于如何使用 JavaScript 进行 LDAP 查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                How to set a header for a HTTP GET request, and trigger file download?(如何为 HTTP GET 请求设置标头并触发文件下载?)
                Adding custom HTTP headers using JavaScript(使用 JavaScript 添加自定义 HTTP 标头)
                SQL Query DocumentDB in Azure Functions by an integer not working(通过整数在 Azure Functions 中 SQL 查询 DocumentDB 不起作用)
                Azure Functions [JavaScript / Node.js] - HTTP call, good practices(Azure Functions [JavaScript/Node.js] - HTTP 调用,良好实践)
                Azure Functions - Import Custom Node Module(Azure Functions - 导入自定义节点模块)
                <i id='Um6vJ'><tr id='Um6vJ'><dt id='Um6vJ'><q id='Um6vJ'><span id='Um6vJ'><b id='Um6vJ'><form id='Um6vJ'><ins id='Um6vJ'></ins><ul id='Um6vJ'></ul><sub id='Um6vJ'></sub></form><legend id='Um6vJ'></legend><bdo id='Um6vJ'><pre id='Um6vJ'><center id='Um6vJ'></center></pre></bdo></b><th id='Um6vJ'></th></span></q></dt></tr></i><div id='Um6vJ'><tfoot id='Um6vJ'></tfoot><dl id='Um6vJ'><fieldset id='Um6vJ'></fieldset></dl></div>
              • <small id='Um6vJ'></small><noframes id='Um6vJ'>

                      <tfoot id='Um6vJ'></tfoot>

                          <bdo id='Um6vJ'></bdo><ul id='Um6vJ'></ul>
                            <tbody id='Um6vJ'></tbody>
                        • <legend id='Um6vJ'><style id='Um6vJ'><dir id='Um6vJ'><q id='Um6vJ'></q></dir></style></legend>