.net - Authentication Types when switching from System.DirectoryServices to DirectoryServices.Protocols -
i need know equivalent authtype values authenticationtypes migrate s.ds s.ds.p code.
i rewriting ldap connection module uses system.directoryservices namespace. increase compatibility non-activedirectory servers, trying rewrite of code use system.directoryservices.protocols (as per suggestion in "the .net developer's guide directory services programming). going smoothly except transition between using authenticationtypes enumeration authtype 1 used sd.protocols. need know equivalents between 2 clients using old code not lose functionality when new code released.
the equivalencies know of are:
none -> basic
secure -> negotiate (more or less)
anonymous -> none
securesocketslayer -> setting ldapsessionoptions.securesocketslayer true
it looks on right track.
after doing research, able map of authenticationtypes values:
none: authtype.basic
secure: authtype.negotiate
anonymous: authtype.anonymous
signing: ldapsessionoptions.signing
sealing: ldapsessionoptions.sealing
securesocketlayer: ldapsessionoptions.securesocketlayer
encryption: same value securesocketlayer
readonlyserver: ldapsessionoptions.locatorflag.writeablerequired = false
serverbind: use 1 of ldapdirectoryidentifier constructors has fullyqualifieddnshostname argument, value set true.
fastbind: doesn't apply, since s.ds.p works @ lower level.
delegation: no corresponding setting found. delegation implicit. 1 way test convert code on this page , see if works.
be aware not non-ad servers support authtype.negotiate, since windows specific. there several other things (like of locatorflag values) not mean non-ad systems. thus, take care when converting code assumed ad connectivity, since assumptions no longer safe.
Comments
Post a Comment