コード例 #1
0
 private static bool IsAuthenticationTypeParameterValid(ADClientAccessRule rule)
 {
     if (rule.HasAnyOfSpecificProtocolsPredicate(new List <ClientAccessProtocol>
     {
         ClientAccessProtocol.RemotePowerShell
     }))
     {
         return(!rule.HasAuthenticationMethodPredicate(ClientAccessAuthenticationMethod.AdfsAuthentication));
     }
     if (rule.HasAnyOfSpecificProtocolsPredicate(new List <ClientAccessProtocol>
     {
         ClientAccessProtocol.OutlookWebApp,
         ClientAccessProtocol.ExchangeAdminCenter
     }))
     {
         return(!rule.HasAuthenticationMethodPredicate(ClientAccessAuthenticationMethod.NonBasicAuthentication));
     }
     return(!rule.HasAnyAuthenticationMethodPredicate());
 }
コード例 #2
0
 public static bool IsADRuleValid(ADClientAccessRule rule)
 {
     return(ClientAccessRulesStorageManager.IsAuthenticationTypeParameterValid(rule) && rule.ValidateUserRecipientFilterParsesWithSchema());
 }