1 /******************************************************************************
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the Software), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 *******************************************************************************/
24 using System.Security.Permissions;
26 namespace System.DirectoryServices.ActiveDirectory
28 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true)]
29 public class DomainController : DirectoryServer
31 public Forest Forest {
33 throw new NotImplementedException ();
37 public DateTime CurrentTime {
39 throw new NotImplementedException ();
43 public long HighestCommittedUsn {
45 throw new NotImplementedException ();
49 public string OSVersion {
51 throw new NotImplementedException ();
55 public ActiveDirectoryRoleCollection Roles {
57 throw new NotImplementedException ();
61 public Domain Domain {
63 throw new NotImplementedException ();
67 public override string IPAddress {
68 [DnsPermission(SecurityAction.Assert, Unrestricted = true), DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
70 throw new NotImplementedException ();
74 public override string SiteName {
75 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
77 throw new NotImplementedException ();
81 public override SyncUpdateCallback SyncFromAllServersCallback {
82 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
84 throw new NotImplementedException ();
86 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
88 throw new NotImplementedException ();
92 public override ReplicationConnectionCollection InboundConnections {
93 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
95 throw new NotImplementedException ();
99 public override ReplicationConnectionCollection OutboundConnections {
100 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
102 throw new NotImplementedException ();
106 protected DomainController ()
110 protected override void Dispose (bool disposing)
116 public static DomainController GetDomainController (DirectoryContext context)
118 throw new NotImplementedException ();
121 public static DomainController FindOne (DirectoryContext context)
123 throw new NotImplementedException ();
126 public static DomainController FindOne (DirectoryContext context, string siteName)
128 throw new NotImplementedException ();
131 public static DomainController FindOne (DirectoryContext context, LocatorOptions flag)
133 throw new NotImplementedException ();
136 public static DomainController FindOne (DirectoryContext context, string siteName, LocatorOptions flag)
138 throw new NotImplementedException ();
141 public static DomainControllerCollection FindAll (DirectoryContext context)
143 throw new NotImplementedException ();
146 public static DomainControllerCollection FindAll (DirectoryContext context, string siteName)
148 throw new NotImplementedException ();
151 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
152 public virtual GlobalCatalog EnableGlobalCatalog ()
154 throw new NotImplementedException ();
157 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
158 public virtual bool IsGlobalCatalog ()
160 throw new NotImplementedException ();
163 public void TransferRoleOwnership (ActiveDirectoryRole role)
165 throw new NotImplementedException ();
168 public void SeizeRoleOwnership (ActiveDirectoryRole role)
170 throw new NotImplementedException ();
173 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
174 public virtual DirectorySearcher GetDirectorySearcher ()
176 throw new NotImplementedException ();
179 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
180 public override void CheckReplicationConsistency ()
182 throw new NotImplementedException ();
185 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
186 public override ReplicationCursorCollection GetReplicationCursors (string partition)
188 throw new NotImplementedException ();
191 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
192 public override ReplicationOperationInformation GetReplicationOperationInformation ()
194 throw new NotImplementedException ();
197 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
198 public override ReplicationNeighborCollection GetReplicationNeighbors (string partition)
200 throw new NotImplementedException ();
203 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
204 public override ReplicationNeighborCollection GetAllReplicationNeighbors ()
206 throw new NotImplementedException ();
209 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
210 public override ReplicationFailureCollection GetReplicationConnectionFailures ()
212 throw new NotImplementedException ();
215 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
216 public override ActiveDirectoryReplicationMetadata GetReplicationMetadata (string objectPath)
218 throw new NotImplementedException ();
221 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
222 public override void SyncReplicaFromServer (string partition, string sourceServer)
224 throw new NotImplementedException ();
227 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
228 public override void TriggerSyncReplicaFromNeighbors (string partition)
230 throw new NotImplementedException ();
233 [DirectoryServicesPermission(SecurityAction.LinkDemand, Unrestricted = true), DirectoryServicesPermission(SecurityAction.InheritanceDemand, Unrestricted = true)]
234 public override void SyncReplicaFromAllServers (string partition, SyncFromAllServersOptions options)
236 throw new NotImplementedException ();