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

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

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

      2. 从 System.DirectoryServices 切换到 DirectoryServices.Protocols 时

        Authentication Types when switching from System.DirectoryServices to DirectoryServices.Protocols(从 System.DirectoryServices 切换到 DirectoryServices.Protocols 时的身份验证类型)
            <tbody id='TllBu'></tbody>

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

              • <bdo id='TllBu'></bdo><ul id='TllBu'></ul>
                <tfoot id='TllBu'></tfoot>
                  <legend id='TllBu'><style id='TllBu'><dir id='TllBu'><q id='TllBu'></q></dir></style></legend>

                  本文介绍了从 System.DirectoryServices 切换到 DirectoryServices.Protocols 时的身份验证类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要知道 AuthenticationTypes 中的等效 AuthType 值才能从 S.DS 迁移到 S.DS.P 代码.

                  I need to know the equivalent AuthType values from AuthenticationTypes to migrate from S.DS to S.DS.P code.

                  我正在重写一个当前使用 System.DirectoryServices 命名空间的 LDAP 连接模块.为了提高与非 ActiveDirectory 服务器的兼容性,我正在尝试重写所有代码以使用 System.DirectoryServices.Protocols(根据.NET 开发人员目录服务编程指南"中的建议).除了在使用 AuthenticationTypes 枚举到 SD.Protocols 使用的 AuthType 枚举之间的转换.我需要知道两者之间的等价物,以便使用旧代码的客户端在发布新代码时不会失去功能.

                  I am rewriting an LDAP connection module that currently uses the System.DirectoryServices namespace. To increase compatibility with non-ActiveDirectory servers, I am trying to rewrite all of the code to use System.DirectoryServices.Protocols (as per the suggestion in "The .NET Developer's Guide to Directory Services Programming). Everything is going smoothly except for the transition between using the AuthenticationTypes enumeration to the AuthType one used by SD.Protocols. I need to know the equivalents between the two so that clients using the old code do not lose functionality when the new code is released.

                  我知道的等价物是:
                  无 -> 基本
                  安全 -> 协商(或多或少)
                  匿名 -> 无
                  SecureSocketsLayer -> 将 LdapSessionOptions.SecureSocketsLayer 设置为 true

                  The equivalencies that I know of are:
                  None -> Basic
                  Secure -> Negotiate (more or less)
                  Anonymous -> None
                  SecureSocketsLayer -> setting LdapSessionOptions.SecureSocketsLayer to true

                  推荐答案

                  看来你走对了.

                  经过一些研究,我能够映射几乎所有的 AuthenticationTypes 值:

                  After doing some research, I was able to map almost all of the AuthenticationTypes values:

                  无:AuthType.Basic

                  None: AuthType.Basic

                  安全:AuthType.Negotiate

                  Secure: AuthType.Negotiate

                  匿名:AuthType.Anonymous

                  Anonymous: AuthType.Anonymous

                  签名:LdapSessionOptions.Signing

                  Signing: LdapSessionOptions.Signing

                  密封:LdapSessionOptions.Sealing

                  Sealing: LdapSessionOptions.Sealing

                  SecureSocketLayer:LdapSessionOptions.SecureSocketLayer

                  SecureSocketLayer: LdapSessionOptions.SecureSocketLayer

                  加密:与 SecureSocketLayer 的值相同

                  Encryption: Same value as SecureSocketLayer

                  ReadonlyServer:LdapSessionOptions.LocatorFlag.WriteableRequired = false

                  ReadonlyServer: LdapSessionOptions.LocatorFlag.WriteableRequired = false

                  Serverbind:使用具有 fullyQualifiedDnsHostName 参数的 LdapDirectoryIdentifier 构造函数之一,并将值设置为 true.

                  Serverbind: Use one of the LdapDirectoryIdentifier constructors that has the fullyQualifiedDnsHostName argument, with the value set to true.

                  FastBind:不适用,因为此 S.DS.P 在较低级别上工作.

                  FastBind: Doesn't apply, since this S.DS.P works at a lower level.

                  委托:未找到相应的设置.委托可能是隐含的.一种测试方法是转换 上的代码这个页面,看看它是否有效.

                  Delegation: No corresponding setting found. It could be that delegation is implicit. One way to test would be to convert the code on this page and see if it works.

                  请注意,并非所有非 AD 服务器都支持 AuthType.Negotiate,因为它是特定于 Windows 的.还有一些其他的东西(比如一些 LocatorFlag 值)对于非 AD 系统也没有任何意义.因此,在转换假设 AD 连接的代码时要小心,因为某些假设将不再安全.

                  Be aware that not all non-AD servers will support AuthType.Negotiate, since it is Windows specific. There are several other things (like some of the LocatorFlag values) that will also not mean anything for non-AD systems. Thus, take care when converting code that assumed AD connectivity, since some assumptions will no longer be safe.

                  这篇关于从 System.DirectoryServices 切换到 DirectoryServices.Protocols 时的身份验证类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                  Is there a quot;Setquot; data structure in .Net?(有没有“套路?.Net 中的数据结构?)
                  Collection that allows only unique items in .NET?(仅允许 .NET 中唯一项目的集合?)
                  Adding headers in ASP.NET MVC 3(在 ASP.NET MVC 3 中添加标头)
                  Response.Redirect strips Header Referrer - Possible to Add it Back?(Response.Redirect 剥离 Header Referrer - 可以将其添加回来吗?)
                  <tfoot id='Guvyt'></tfoot>

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

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

                          • <legend id='Guvyt'><style id='Guvyt'><dir id='Guvyt'><q id='Guvyt'></q></dir></style></legend>