static MiniVirtualDirectory() { ADVirtualDirectory advirtualDirectory = new ADVirtualDirectory(); MiniVirtualDirectory.implicitFilter = advirtualDirectory.ImplicitFilter; MiniVirtualDirectory.mostDerivedClass = advirtualDirectory.MostDerivedObjectClass; MiniVirtualDirectory.schema = ObjectSchema.GetInstance <MiniVirtualDirectorySchema>(); }
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)); }
internal static object ServerNameGetter(IPropertyBag propertyBag) { object result; try { ADObjectId adobjectId = (ADObjectId)propertyBag[ADObjectSchema.Id]; if (adobjectId == null && (ObjectState)propertyBag[ADObjectSchema.ObjectState] != ObjectState.New) { throw new InvalidOperationException(DirectoryStrings.IdIsNotSet); } result = ((adobjectId == null) ? null : ADVirtualDirectory.GetServerNameFromVDirObjectId(adobjectId)); } catch (InvalidOperationException ex) { throw new DataValidationException(new PropertyValidationError(DirectoryStrings.CannotCalculateProperty("Server", ex.Message), ADVirtualDirectorySchema.Server, propertyBag[ADObjectSchema.Id]), ex); } return(result); }
internal static object ExternalAuthenticationMethodsGetter(IPropertyBag propertyBag) { AuthenticationMethodFlags authenticationMethodFlags = (AuthenticationMethodFlags)propertyBag[ADVirtualDirectorySchema.ExternalAuthenticationMethodFlags]; return(ADVirtualDirectory.AuthenticationMethodFlagsToAuthenticationMethodPropertyValue(authenticationMethodFlags)); }
internal static void ExternalAuthenticationMethodsSetter(object value, IPropertyBag propertyBag) { AuthenticationMethodFlags authenticationMethodFlags = ADVirtualDirectory.AuthenticationMethodPropertyValueToAuthenticationMethodFlags((MultiValuedProperty <AuthenticationMethod>)value); propertyBag[ADVirtualDirectorySchema.ExternalAuthenticationMethodFlags] = authenticationMethodFlags; }
internal static void SetIISAuthenticationMethods(object value, IPropertyBag propertyBag) { ADVirtualDirectory.InternalAuthenticationMethodsSetter(value, propertyBag); ADVirtualDirectory.ExternalAuthenticationMethodsSetter(value, propertyBag); }
internal static object GetIISAuthenticationMethods(IPropertyBag propertyBag) { return(ADVirtualDirectory.InternalAuthenticationMethodsGetter(propertyBag)); }