コード例 #1
0
		public GetADPrincipalGroupMembershipResponse(ActiveDirectoryGroup[] MemberOf)
		{
			this.MemberOf = MemberOf;
		}
コード例 #2
0
		public GetADPrincipalAuthorizationGroupResponse(ActiveDirectoryGroup[] MemberOf)
		{
			this.MemberOf = MemberOf;
		}
コード例 #3
0
ファイル: ADAccountManagement.cs プロジェクト: nickchal/pash
		private void PopulateADGroupFromWebServiceData(ActiveDirectoryGroup inputWSGroup, ADGroup groupToPopulate)
		{
			ActiveDirectoryGroupScope groupScope = inputWSGroup.GroupScope;
			switch (groupScope)
			{
				case ActiveDirectoryGroupScope.DomainLocal:
				{
					groupToPopulate.GroupScope = new ADGroupScope?(ADGroupScope.DomainLocal);
					break;
				}
				case ActiveDirectoryGroupScope.Global:
				{
					groupToPopulate.GroupScope = new ADGroupScope?(ADGroupScope.Global);
					break;
				}
				case ActiveDirectoryGroupScope.Universal:
				{
					groupToPopulate.GroupScope = new ADGroupScope?(ADGroupScope.Universal);
					break;
				}
			}
			ActiveDirectoryGroupType groupType = inputWSGroup.GroupType;
			switch (groupType)
			{
				case ActiveDirectoryGroupType.Distribution:
				{
					groupToPopulate.GroupCategory = new ADGroupCategory?(ADGroupCategory.Distribution);
					break;
				}
				case ActiveDirectoryGroupType.Security:
				{
					groupToPopulate.GroupCategory = new ADGroupCategory?(ADGroupCategory.Security);
					break;
				}
			}
			this.PopulateADPrincipalFromWebServiceData(inputWSGroup, groupToPopulate);
		}