internal static object GetIISAuthenticationMethods(IPropertyBag propertyBag)
        {
            AuthenticationMethodFlags authenticationMethodFlags = (AuthenticationMethodFlags)propertyBag[ADVirtualDirectorySchema.InternalAuthenticationMethodFlags];

            if (authenticationMethodFlags == AuthenticationMethodFlags.None)
            {
                authenticationMethodFlags = (AuthenticationMethodFlags.Basic | AuthenticationMethodFlags.Ntlm | AuthenticationMethodFlags.Negotiate);
            }
            return(ADVirtualDirectory.AuthenticationMethodFlagsToAuthenticationMethodPropertyValue(authenticationMethodFlags));
        }
예제 #2
0
        internal static object ExternalAuthenticationMethodsGetter(IPropertyBag propertyBag)
        {
            AuthenticationMethodFlags authenticationMethodFlags = (AuthenticationMethodFlags)propertyBag[ADVirtualDirectorySchema.ExternalAuthenticationMethodFlags];

            return(ADVirtualDirectory.AuthenticationMethodFlagsToAuthenticationMethodPropertyValue(authenticationMethodFlags));
        }