Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Are ADSI AuthenticationTypes.Encryption and AuthenticationTypes.SecureSocketsLayer functionally different or the same?

116 views
Skip to first unread message

ekahl...@gmail.com

unread,
Sep 6, 2012, 11:12:07 AM9/6/12
to
I noticed that within the AuthenticationTypes enumeration, both Encryption and SecureSocketsLayer have the same integer value of 2. One would think they are completely identical, but I noticed that on the MSDN site for AuthenticationTypes enumaration, that both methods state the following "Attaches a cryptographic signature to the message that both identifies the sender and ensures that the message has not been modified in transit.". However, the following additional statement is made for SecureSocketsLayer: "Active Directory Domain Services requires the Certificate Server be installed to support Secure Sockets Layer (SSL) encryption."

So is there a functional difference between the two methods? If so, how would I programmatically determine which method was used via [FlagAttribute] enumeration given that they have the same integer value and why would they give it the same value if they are functionally different? Why not give it an integer value of 8 (which isn't used)? My assumption is that they are 100% functionally same, but I wanted to get confirmation on this.

Any insight on this would be greatly appreciated.

Thanks!

matt...@gmail.com

unread,
Oct 4, 2016, 12:13:16 PM10/4/16
to
If one were to inspect the definition of the AuthenticationTypes enum, you would find the following line describing SecureSocketsLayer and Encryption are in fact equal:

[Flags]
public enum AuthenticationTypes
{
None = 0,
Secure = 1,
Encryption = 2,
SecureSocketsLayer = Encryption,
ReadonlyServer = 4,
Anonymous = 16,
FastBind = 32,
Signing = 64,
Sealing = 128,
Delegation = 256,
ServerBind = 512,
0 new messages