Просмотр исходного кода

Merge pull request #718 from alesliehughes/master

More System.DirectoryServices.ActiveDirectory classes + other.
Marek Safar 12 лет назад
Родитель
Сommit
01ee50f7d6
16 измененных файлов с 708 добавлено и 0 удалено
  1. 73 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryOperationException.cs
  2. 56 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryPartition.cs
  3. 58 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryReplicationMetadata.cs
  4. 50 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryRoleCollection.cs
  5. 69 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectorySchedule.cs
  6. 43 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectorySiteOptions.cs
  7. 53 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectorySyntax.cs
  8. 50 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/AttributeMetadataCollection.cs
  9. 35 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ForestTrustDomainStatus.cs
  10. 33 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/PropertyTypes.cs
  11. 33 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/SchemaClassType.cs
  12. 34 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/TopLevelNameStatus.cs
  13. 37 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/TrustType.cs
  14. 11 0
      mcs/class/System.DirectoryServices/System.DirectoryServices.dll.sources
  15. 1 0
      mcs/class/System.Net/System.Net.dll.sources
  16. 72 0
      mcs/class/System.Net/System.Net/DnsPermission.cs

+ 73 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryOperationException.cs

@@ -0,0 +1,73 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+using System.Runtime.Serialization;
+using System.Security.Permissions;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	[Serializable]
+	public class ActiveDirectoryOperationException : Exception, ISerializable
+	{
+		public int ErrorCode {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public ActiveDirectoryOperationException (string message, Exception inner, int errorCode) : base(message, inner)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public ActiveDirectoryOperationException (string message, int errorCode) : base(message)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public ActiveDirectoryOperationException (string message, Exception inner) : base(message, inner)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public ActiveDirectoryOperationException (string message) : base(message)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public ActiveDirectoryOperationException () : base("DSUnknownFailure")
+		{
+			throw new NotImplementedException ();
+		}
+
+		protected ActiveDirectoryOperationException (SerializationInfo info, StreamingContext context) : base(info, context)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
+		public override void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 56 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryPartition.cs

@@ -0,0 +1,56 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+using System.Security.Permissions;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public abstract class ActiveDirectoryPartition : IDisposable
+	{
+		public string Name {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		protected ActiveDirectoryPartition ()
+		{
+		}
+
+		public void Dispose ()
+		{
+		}
+
+		protected virtual void Dispose (bool disposing)
+		{
+
+		}
+
+		public override string ToString ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true)]
+		public abstract DirectoryEntry GetDirectoryEntry ();
+	}
+}

+ 58 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryReplicationMetadata.cs

@@ -0,0 +1,58 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+using System.Collections;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public class ActiveDirectoryReplicationMetadata : DictionaryBase
+	{
+		public AttributeMetadata this [string name] {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public ReadOnlyStringCollection AttributeNames {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public AttributeMetadataCollection Values {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool Contains (string attributeName)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void CopyTo (AttributeMetadata[] array, int index)
+		{
+			throw new NotImplementedException ();
+		}
+
+	}
+}

+ 50 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectoryRoleCollection.cs

@@ -0,0 +1,50 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+using System.Collections;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public class ActiveDirectoryRoleCollection : ReadOnlyCollectionBase
+	{
+		public ActiveDirectoryRole this [int index] {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool Contains (ActiveDirectoryRole role)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public int IndexOf (ActiveDirectoryRole role)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void CopyTo (ActiveDirectoryRole[] roles, int index)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 69 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectorySchedule.cs

@@ -0,0 +1,69 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public class ActiveDirectorySchedule
+	{
+		public bool[,,] RawSchedule {
+			get {
+				throw new NotImplementedException ();
+			}
+			set {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public ActiveDirectorySchedule ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public ActiveDirectorySchedule (ActiveDirectorySchedule schedule) : this()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void SetSchedule (DayOfWeek day, HourOfDay fromHour, MinuteOfHour fromMinute, HourOfDay toHour, MinuteOfHour toMinute)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void SetSchedule (DayOfWeek[] days, HourOfDay fromHour, MinuteOfHour fromMinute, HourOfDay toHour, MinuteOfHour toMinute)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void SetDailySchedule (HourOfDay fromHour, MinuteOfHour fromMinute, HourOfDay toHour, MinuteOfHour toMinute)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void ResetSchedule ()
+		{
+			throw new NotImplementedException ();
+		}
+
+	}
+}

+ 43 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectorySiteOptions.cs

@@ -0,0 +1,43 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	[Flags]
+	public enum ActiveDirectorySiteOptions
+	{
+		None = 0,
+		AutoTopologyDisabled = 1,
+		TopologyCleanupDisabled = 2,
+		AutoMinimumHopDisabled = 4,
+		StaleServerDetectDisabled = 8,
+		AutoInterSiteTopologyDisabled = 16,
+		GroupMembershipCachingEnabled = 32,
+		ForceKccWindows2003Behavior = 64,
+		UseWindows2000IstgElection = 128,
+		RandomBridgeHeaderServerSelectionDisabled = 256,
+		UseHashingForReplicationSchedule = 512,
+		RedundantServerTopologyEnabled = 1024
+	}
+}

+ 53 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ActiveDirectorySyntax.cs

@@ -0,0 +1,53 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public enum ActiveDirectorySyntax
+	{
+		CaseExactString,
+		CaseIgnoreString,
+		NumericString,
+		DirectoryString,
+		OctetString,
+		SecurityDescriptor,
+		Int,
+		Int64,
+		Bool,
+		Oid,
+		GeneralizedTime,
+		UtcTime,
+		DN,
+		DNWithBinary,
+		DNWithString,
+		Enumeration,
+		IA5String,
+		PrintableString,
+		Sid,
+		AccessPointDN,
+		ORName,
+		PresentationAddress,
+		ReplicaLink
+	}
+}

+ 50 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/AttributeMetadataCollection.cs

@@ -0,0 +1,50 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+using System.Collections;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public class AttributeMetadataCollection : ReadOnlyCollectionBase
+	{
+		public AttributeMetadata this [int index] {
+			get {
+				throw new NotImplementedException ();
+			}
+		}
+
+		public bool Contains (AttributeMetadata metadata)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public int IndexOf (AttributeMetadata metadata)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public void CopyTo (AttributeMetadata[] metadata, int index)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 35 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/ForestTrustDomainStatus.cs

@@ -0,0 +1,35 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public enum ForestTrustDomainStatus
+	{
+		Enabled,
+		SidAdminDisabled,
+		SidConflictDisabled,
+		NetBiosNameAdminDisabled = 4,
+		NetBiosNameConflictDisabled = 8
+	}
+}

+ 33 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/PropertyTypes.cs

@@ -0,0 +1,33 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	[Flags]
+	public enum PropertyTypes
+	{
+		Indexed = 2,
+		InGlobalCatalog = 4
+	}
+}

+ 33 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/SchemaClassType.cs

@@ -0,0 +1,33 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public enum SchemaClassType
+	{
+		Type88,
+		Structural,
+		Abstract,
+		Auxiliary
+	}
+}

+ 34 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/TopLevelNameStatus.cs

@@ -0,0 +1,34 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public enum TopLevelNameStatus
+	{
+		Enabled,
+		NewlyCreated,
+		AdminDisabled,
+		ConflictDisabled = 4
+	}
+}

+ 37 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.ActiveDirectory/TrustType.cs

@@ -0,0 +1,37 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+
+using System;
+
+namespace System.DirectoryServices.ActiveDirectory
+{
+	public enum TrustType
+	{
+		TreeRoot,
+		ParentChild,
+		CrossLink,
+		External,
+		Forest,
+		Kerberos,
+		Unknown
+	}
+}

+ 11 - 0
mcs/class/System.DirectoryServices/System.DirectoryServices.dll.sources

@@ -25,22 +25,33 @@ System.DirectoryServices/SortOption.cs
 ../../build/common/MonoTODOAttribute.cs
 System.DirectoryServices.Design/DirectoryEntryConverter.cs
 System.DirectoryServices.ActiveDirectory/ActiveDirectoryRole.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectoryOperationException.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectoryPartition.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectoryReplicationMetadata.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectoryRoleCollection.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectorySchedule.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectorySiteOptions.cs
+System.DirectoryServices.ActiveDirectory/ActiveDirectorySyntax.cs
 System.DirectoryServices.ActiveDirectory/ActiveDirectoryTransportType.cs
 System.DirectoryServices.ActiveDirectory/AttributeMetadata.cs
 System.DirectoryServices.ActiveDirectory/AttributeMetadataCollection.cs
 System.DirectoryServices.ActiveDirectory/DirectoryContextType.cs
 System.DirectoryServices.ActiveDirectory/DomainMode.cs
 System.DirectoryServices.ActiveDirectory/ForestMode.cs
+System.DirectoryServices.ActiveDirectory/ForestTrustDomainStatus.cs
 System.DirectoryServices.ActiveDirectory/HourOfDay.cs
 System.DirectoryServices.ActiveDirectory/LocatorOptions.cs
 System.DirectoryServices.ActiveDirectory/MinuteOfHour.cs
 System.DirectoryServices.ActiveDirectory/NotificationStatus.cs
+System.DirectoryServices.ActiveDirectory/PropertyTypes.cs
 System.DirectoryServices.ActiveDirectory/ReadOnlyStringCollection.cs
 System.DirectoryServices.ActiveDirectory/ReplicationNeighbor.cs
 System.DirectoryServices.ActiveDirectory/ReplicationOperationType.cs
 System.DirectoryServices.ActiveDirectory/ReplicationSpan.cs
+System.DirectoryServices.ActiveDirectory/SchemaClassType.cs
 System.DirectoryServices.ActiveDirectory/SyncFromAllServersErrorCategory.cs
 System.DirectoryServices.ActiveDirectory/SyncFromAllServersEvent.cs
 System.DirectoryServices.ActiveDirectory/SyncFromAllServersOptions.cs
+System.DirectoryServices.ActiveDirectory/TopLevelNameStatus.cs
 System.DirectoryServices.ActiveDirectory/TrustDirection.cs
 System.DirectoryServices.ActiveDirectory/TrustType.cs

+ 1 - 0
mcs/class/System.Net/System.Net.dll.sources

@@ -2,4 +2,5 @@ Assembly/AssemblyInfo.cs
 Assembly/TypeForwarders.cs
 ../../build/common/Consts.cs
 ../../build/common/MonoTODOAttribute.cs
+System.Net/DnsPermission.cs
 System.Net/IPEndPointCollection.cs

+ 72 - 0
mcs/class/System.Net/System.Net/DnsPermission.cs

@@ -0,0 +1,72 @@
+/******************************************************************************
+* The MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining  a copy
+* of this software and associated documentation files (the Software), to deal
+* in the Software without restriction, including  without limitation the rights
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+* copies of the Software, and to  permit persons to whom the Software is
+* furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in
+* all copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+* SOFTWARE.
+*******************************************************************************/
+using System;
+using System.Runtime;
+using System.Security;
+using System.Security.Permissions;
+
+namespace System.Net
+{
+	[Serializable]
+	public sealed class DnsPermission : CodeAccessPermission, IUnrestrictedPermission
+	{
+		public DnsPermission (PermissionState state)
+		{
+
+		}
+
+		public bool IsUnrestricted ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public override IPermission Copy ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public override IPermission Union (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public override IPermission Intersect (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public override bool IsSubsetOf (IPermission target)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public override void FromXml (SecurityElement securityElement)
+		{
+			throw new NotImplementedException ();
+		}
+
+		public override SecurityElement ToXml ()
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}