3 writes to context
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (2)
40
this.
context
= context;
55
this.
context
= context;
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
76
this.
context
= context;
65 references to context
System.DirectoryServices (65)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (25)
242
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
278
roleObjectEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, roleObjectDN);
284
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
469
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
489
DirectoryContext configSetContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
);
504
_cachedHostName = (string)PropertyManager.GetPropertyValue(
context
, serverEntry, PropertyManager.DnsHostName)!;
518
_cachedLdapPort = (int)PropertyManager.GetPropertyValue(
context
, ntdsaEntry, PropertyManager.MsDSPortLDAP)!;
532
_cachedSslPort = (int)PropertyManager.GetPropertyValue(
context
, ntdsaEntry, PropertyManager.MsDSPortSSL)!;
554
schemaEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.SchemaNamingContext));
556
if (NtdsaObjectName.Equals((string)PropertyManager.GetPropertyValue(
context
, schemaEntry, PropertyManager.FsmoRoleOwner)!))
561
partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer));
563
if (NtdsaObjectName.Equals((string)PropertyManager.GetPropertyValue(
context
, partitionsEntry, PropertyManager.FsmoRoleOwner)!))
573
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
602
_cachedDefaultPartition = (string)PropertyManager.GetPropertyValue(
context
, ntdsaEntry, PropertyManager.MsDSDefaultNamingContext)!;
607
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
672
DirectoryEntry siteEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, SiteObjectName);
675
cachedSiteName = (string)PropertyManager.GetPropertyValue(
context
, siteEntry, PropertyManager.Cn)!;
719
DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(
context
, WellKnownDN.RootDSE);
722
cachedServerObjectName = (string)PropertyManager.GetPropertyValue(
context
, rootDSE, PropertyManager.ServerName)!;
726
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
744
DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(
context
, WellKnownDN.RootDSE);
747
cachedNtdsaObjectName = (string)PropertyManager.GetPropertyValue(
context
, rootDSE, PropertyManager.DsServiceName)!;
751
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
770
byte[] guidByteArray = (byte[])PropertyManager.GetPropertyValue(
context
, ntdsaEntry, PropertyManager.ObjectGuid)!;
828
_authIdentity = Utils.GetAuthIdentity(
context
, DirectoryContext.ADAMHandle);
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (15)
97
newParentEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, parentDN);
104
_ = (string?)PropertyManager.GetPropertyValue(
context
, serverEntry, PropertyManager.DistinguishedName);
111
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
147
return DirectoryEntryManager.GetDirectoryEntry(
context
, serverName);
223
rootDSE = DirectoryEntryManager.GetDirectoryEntry(
context
, WellKnownDN.RootDSE);
232
serverNtdsaEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, ntdsaName);
245
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
258
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
276
internal DirectoryContext Context =>
context
;
356
DirectoryEntry verifyEntry = DirectoryEntryManager.GetDirectoryEntry(this.
context
, partition);
703
DirectoryContext newContext = Utils.GetNewDirectoryContext(sourceServer, DirectoryContextType.DirectoryServer,
context
);
763
DirectoryContext newContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
);
768
DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
), srchDN);
806
DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
), siteName);
815
DirectoryContext newContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
);
System\DirectoryServices\ActiveDirectory\DomainController.cs (18)
277
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
280
return new GlobalCatalog(
context
, Name);
309
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
331
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
380
roleObjectEntry = DirectoryEntryManager.GetDirectoryEntry(
context
, roleObjectDN);
401
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
589
DirectoryContext forestContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
);
602
DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(
context
, WellKnownDN.RootDSE);
607
serverUTCTime = (string)PropertyManager.GetPropertyValue(
context
, rootDSE, PropertyManager.CurrentTime)!;
623
DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(
context
, WellKnownDN.RootDSE);
628
serverHighestCommittedUsn = (string)PropertyManager.GetPropertyValue(
context
, rootDSE, PropertyManager.HighestCommittedUSN)!;
648
_cachedOSVersion = (string)PropertyManager.GetPropertyValue(
context
, computerEntry, PropertyManager.OperatingSystem)!;
665
string osVersion = (string)PropertyManager.GetPropertyValue(
context
, computerEntry, PropertyManager.OperatingSystemVersion)!;
704
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
709
DirectoryContext domainContext = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
);
1185
_authIdentity = Utils.GetAuthIdentity(
context
, DirectoryContext.ADHandle);
1306
de.Username =
context
.UserName;
1307
de.Password =
context
.Password;
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (7)
202
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
209
return new DomainController(
context
, Name);
236
throw ExceptionHelper.GetExceptionFromCOMException(
context
, e);
238
_ = Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer,
context
);
239
_schema = new ActiveDirectorySchema(
context
, schemaNC);
430
de.Username =
context
.UserName;
431
de.Password =
context
.Password;