62 references to Name
System.DirectoryServices (61)
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (1)
372
rootEntry = new DirectoryEntry("GC://" + forest.
Name
, forestContext.UserName, forestContext.Password, authType);
System\DirectoryServices\ActiveDirectory\Forest.cs (60)
229
public override string ToString() =>
Name
;
235
return GlobalCatalog.FindOneInternal(_context,
Name
, null, 0);
244
return GlobalCatalog.FindOneInternal(_context,
Name
, siteName, 0);
251
return GlobalCatalog.FindOneInternal(_context,
Name
, null, flag);
260
return GlobalCatalog.FindOneInternal(_context,
Name
, siteName, flag);
284
return new GlobalCatalogCollection(Locator.EnumerateDomainControllers(_context,
Name
, null, flag));
300
return new GlobalCatalogCollection(Locator.EnumerateDomainControllers(_context,
Name
, siteName, flag));
329
throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.ForestTrustDoesNotExist,
Name
, targetForestName), typeof(TrustRelationshipInformation), null);
343
return TrustHelper.GetTrustedDomainInfoStatus(_context,
Name
, targetForestName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_CROSS_ORGANIZATION, true);
356
TrustHelper.SetTrustedDomainInfoStatus(_context,
Name
, targetForestName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_CROSS_ORGANIZATION, enable, true);
369
return TrustHelper.GetTrustedDomainInfoStatus(_context,
Name
, targetForestName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL, true);
382
TrustHelper.SetTrustedDomainInfoStatus(_context,
Name
, targetForestName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_TREAT_AS_EXTERNAL, enable, true);
396
TrustHelper.DeleteTrust(_context,
Name
, targetForestName, true);
407
TrustHelper.DeleteTrust(targetForest.GetDirectoryContext(), targetForest.
Name
,
Name
, true);
410
TrustHelper.DeleteTrust(_context,
Name
, targetForest.
Name
, true);
423
TrustHelper.VerifyTrust(_context,
Name
, targetForestName, true/*forest*/, TrustDirection.Outbound, false /*just TC verification*/, null /* no need to go to specific server*/);
441
TrustHelper.VerifyTrust(_context,
Name
, targetForest.
Name
, true/*forest*/, TrustDirection.Outbound, false/*just TC verification*/, null /* no need to go to specific server*/);
445
throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection,
Name
, targetForest.
Name
, direction), typeof(ForestTrustRelationshipInformation), null);
454
TrustHelper.VerifyTrust(targetForest.GetDirectoryContext(), targetForest.
Name
,
Name
, true/*forest*/, TrustDirection.Outbound, false/*just TC verification*/, null /* no need to go to specific server*/);
458
throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection,
Name
, targetForest.
Name
, direction), typeof(ForestTrustRelationshipInformation), null);
487
TrustHelper.CreateTrust(_context,
Name
, targetContext, targetForestName, true, direction, trustPassword);
503
TrustHelper.CreateTrust(_context,
Name
, targetForest.GetDirectoryContext(), targetForest.
Name
, true, direction, password);
512
TrustHelper.CreateTrust(targetForest.GetDirectoryContext(), targetForest.
Name
, _context,
Name
, true, (TrustDirection)reverseDirection, password);
531
TrustHelper.UpdateTrust(_context,
Name
, targetForestName, newTrustPassword, true);
553
TrustHelper.UpdateTrustDirection(_context,
Name
, targetForestName, newTrustPassword, true /*is forest*/, newTrustDirection);
569
TrustHelper.UpdateTrustDirection(_context,
Name
, targetForest.
Name
, password, true /*is forest*/, newTrustDirection);
578
TrustHelper.UpdateTrustDirection(targetForest.GetDirectoryContext(), targetForest.
Name
,
Name
, password, true /*is forest*/, reverseDirection);
592
direction = GetTrustRelationship(targetForest.
Name
).TrustDirection;
597
TrustHelper.VerifyTrust(_context,
Name
, targetForest.
Name
, true /*is forest*/, TrustDirection.Outbound, true/*reset secure channel*/, null /* no need to go to specific server*/);
603
TrustHelper.VerifyTrust(targetForest.GetDirectoryContext(), targetForest.
Name
,
Name
, true/*is forest*/, TrustDirection.Outbound, true/*reset secure channel*/, null /* no need to go to specific server*/);
616
throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection,
Name
, targetForest.
Name
, direction), typeof(ForestTrustRelationshipInformation), null);
708
DirectoryContext domainContext = Utils.GetNewDirectoryContext(
Name
, DirectoryContextType.Domain, _context);
709
_cachedRootDomain = new Domain(domainContext,
Name
);
1075
serverName = Utils.GetPolicyServerName(_context, true, false,
Name
);
1139
TrustRelationshipInformation trust = new ForestTrustRelationshipInformation(_context,
Name
, unmanagedTrust, TrustType.Forest);
1159
string targetServerName = TrustHelper.UpdateTrust(targetForest.GetDirectoryContext(), targetForest.
Name
,
Name
, password, true /*is forest*/);
1162
string sourceServerName = TrustHelper.UpdateTrust(_context,
Name
, targetForest.
Name
, password, true /*is forest*/);
1171
TrustHelper.VerifyTrust(_context,
Name
, targetForest.
Name
, true /*is forest*/, TrustDirection.Outbound, true/*reset secure channel*/, targetServerName /* need to specify which target server */);
1175
throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection,
Name
, targetForest.
Name
, direction), typeof(ForestTrustRelationshipInformation), null);
1184
TrustHelper.VerifyTrust(targetForest.GetDirectoryContext(), targetForest.
Name
,
Name
, true/*is forest*/, TrustDirection.Outbound, true/*reset secure channel*/, sourceServerName /* need to specify which target server */);
1188
throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection,
Name
, targetForest.
Name
, direction), typeof(ForestTrustRelationshipInformation), null);
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADUtils.cs (1)
481
ForestTrustRelationshipInformation FTC = currentForest.GetTrustRelationship(targetdom.Forest.
Name
);