42 instantiations of DirectoryEntry
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
238directoryEntry = new DirectoryEntry(paths[i]);
System.DirectoryServices (25)
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (2)
948tempEntry = new DirectoryEntry("LDAP://" + context.GetServerName() + "/" + distinguishedName, context.UserName, context.Password, authType); 990tempEntry = new DirectoryEntry("LDAP://" + context.Name + "/" + distinguishedName, context.UserName, context.Password, authType);
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (3)
362rootEntry = new DirectoryEntry("GC://" + forestContext.GetServerName(), forestContext.UserName, forestContext.Password, authType); 366rootEntry = new DirectoryEntry("LDAP://" + forestContext.GetServerName(), forestContext.UserName, forestContext.Password, authType); 372rootEntry = new DirectoryEntry("GC://" + forest.Name, forestContext.UserName, forestContext.Password, authType);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
348DirectoryEntry de = new DirectoryEntry("WinNT://" + tempServerName + ",computer", context.UserName, context.Password, Utils.DefaultAuthType);
System\DirectoryServices\ActiveDirectory\DirectoryEntryManager.cs (1)
269de = new DirectoryEntry(ldapPath, username, password, authType);
System\DirectoryServices\ActiveDirectory\DomainController.cs (2)
877de = new DirectoryEntry("LDAP://" + dc.Name + "/RootDSE", context.UserName, context.Password, Utils.DefaultAuthType | AuthenticationTypes.ServerBind); 1302DirectoryEntry de = new DirectoryEntry("LDAP://" + Name);
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (1)
426DirectoryEntry de = new DirectoryEntry("GC://" + Name);
System\DirectoryServices\Design\DirectoryEntryConverter.cs (1)
39newEntry = new DirectoryEntry(text);
System\DirectoryServices\DirectoryEntries.cs (3)
48DirectoryEntry entry = new DirectoryEntry(newChild, _container.UsePropertyCache, _container.GetUsername(), _container.GetPassword(), _container.AuthenticationType); 78return new DirectoryEntry(o, _container.UsePropertyCache, _container.GetUsername(), _container.GetPassword(), _container.AuthenticationType); 128return _currentEntry ??= new DirectoryEntry(_enumVariant.GetValue(), _container.UsePropertyCache, _container.GetUsername(), _container.GetPassword(), _container.AuthenticationType);
System\DirectoryServices\DirectoryEntry.cs (7)
297return new DirectoryEntry(_adsObject.Parent, UsePropertyCache, GetUsername(), GetPassword(), AuthenticationType); 380return new DirectoryEntry(_adsObject.Schema, UsePropertyCache, GetUsername(), GetPassword(), AuthenticationType); 512DirectoryEntry rootDSE = new DirectoryEntry("LDAP://RootDSE", true, null, null, AuthenticationTypes.Secure); 547DirectoryEntry newEntry = new DirectoryEntry(this.Path, this.UsePropertyCache, this.GetUsername(), this.GetPassword(), this.AuthenticationType); 673return new DirectoryEntry(copy, newParent.UsePropertyCache, GetUsername(), GetPassword(), AuthenticationType); 716DirectoryEntry entry = new DirectoryEntry(path); 799return new DirectoryEntry(result, UsePropertyCache, GetUsername(), GetPassword(), AuthenticationType);
System\DirectoryServices\DirectorySearcher.cs (2)
346DirectoryEntry rootDSE = new DirectoryEntry("LDAP://RootDSE", true, null, null, AuthenticationTypes.Secure); 353_searchRoot = new DirectoryEntry("LDAP://" + defaultNamingContext, true, null, null, AuthenticationTypes.Secure);
System\DirectoryServices\SearchResult.cs (2)
30return new DirectoryEntry(Path, true, _parentCredentials.UserName, _parentCredentials.Password, _parentAuthenticationType); 33DirectoryEntry newEntry = new DirectoryEntry(Path, true, null, null, _parentAuthenticationType);
System.DirectoryServices.AccountManagement (16)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (3)
113using (DirectoryEntry rootDse = new DirectoryEntry("LDAP://" + this.userSuppliedServerName + "/rootDse", "", "", AuthenticationTypes.Anonymous)) 267using (DirectoryEntry deRoot = new DirectoryEntry("LDAP://" + userSuppliedServerName + "/rootDSE", credentials?.UserName, credentials?.Password, authTypes)) 278using (DirectoryEntry deSCN = new DirectoryEntry("LDAP://" + userSuppliedServerName + "/" + SchemaNamingContext, credentials?.UserName, credentials?.Password, authTypes))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (4)
1213roots.Add(new DirectoryEntry("GC://" + gc.Name + "/" + p.DistinguishedName, this.credentials?.UserName, this.credentials?.Password, this.AuthTypes)); 1419dncContainer = new DirectoryEntry(@"LDAP://" + this.UserSuppliedServerName + @"/" + this.DefaultNamingContext, Credentials != null ? this.Credentials.UserName : null, Credentials != null ? this.Credentials.Password : null, this.AuthTypes); 1428fspContainer = new DirectoryEntry(fspWkDn, Credentials != null ? this.credentials.UserName : null, Credentials != null ? this.credentials.Password : null, this.authTypes); 2439using (DirectoryEntry rootDse = new DirectoryEntry($"LDAP://{this.dnsHostName}:{port}/rootDse", "", "", AuthenticationTypes.Anonymous))
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (2)
375DirectoryEntry de = new DirectoryEntry(path, 387DirectoryEntry de = new DirectoryEntry();
System\DirectoryServices\AccountManagement\Context.cs (6)
636de = new DirectoryEntry("WinNT://" + hostname + ",computer", _username, _password, authTypes); 727DirectoryEntry de = new DirectoryEntry("LDAP://" + serverName + _container, _username, _password, authTypes); 810deRootDse = new DirectoryEntry("LDAP://" + serverName + "rootDse", _username, _password, authTypes); 828deBase = new DirectoryEntry(adsPathBase, _username, _password, authTypes); 889deUserGroupOrg = new DirectoryEntry(adsPathUserGroupOrg, _username, _password, authTypes); 890deComputer = new DirectoryEntry(adsPathComputer, _username, _password, authTypes);
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (1)
835DirectoryEntry memberDE = new DirectoryEntry(nativeMember);
622 references to DirectoryEntry
PresentationUI (1)
MS\Internal\Documents\PeoplePickerWrapper.cs (1)
233DirectoryEntry directoryEntry = null;
System.DirectoryServices (325)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (7)
12private readonly DirectoryEntry _cachedEntry; 21internal ActiveDirectoryInterSiteTransport(DirectoryContext context, ActiveDirectoryTransportType transport, DirectoryEntry entry) 52DirectoryEntry de; 84DirectoryEntry tmpDE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 243DirectoryEntry connectionEntry = result.GetDirectoryEntry(); 291DirectoryEntry connectionEntry = result.GetDirectoryEntry(); 328public DirectoryEntry GetDirectoryEntry()
System\DirectoryServices\ActiveDirectory\ActiveDirectoryPartition.cs (2)
42foreach (DirectoryEntry entry in directoryEntryMgr.GetCachedDirectoryEntries()) 55public abstract DirectoryEntry GetDirectoryEntry();
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (10)
29private DirectoryEntry _schemaEntry; 30private DirectoryEntry? _abstractSchemaEntry; 131DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 183DirectoryEntry? rootDSE = null; 375public override DirectoryEntry GetDirectoryEntry() 402internal static ReadOnlyActiveDirectorySchemaPropertyCollection GetAllProperties(DirectoryContext context, DirectoryEntry schemaEntry, string filter) 419DirectoryEntry directoryEntry = res.GetDirectoryEntry(); 456internal static ReadOnlyActiveDirectorySchemaClassCollection GetAllClasses(DirectoryContext context, DirectoryEntry schemaEntry, string filter) 473DirectoryEntry directoryEntry = res.GetDirectoryEntry(); 528DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (17)
17private DirectoryEntry? _classEntry; 18private DirectoryEntry? _schemaEntry; 19private DirectoryEntry? _abstractClassEntry; 89internal ActiveDirectorySchemaClass(DirectoryContext context, string ldapDisplayName, DirectoryEntry? classEntry, DirectoryEntry? schemaEntry) 132internal ActiveDirectorySchemaClass(DirectoryContext context, string commonName, Hashtable propertyValuesFromServer, DirectoryEntry schemaEntry) 155internal ActiveDirectorySchemaClass(DirectoryContext context, string commonName, string ldapDisplayName, DirectoryEntry classEntry, DirectoryEntry schemaEntry) 247schemaClass = new ActiveDirectorySchemaClass(context, ldapDisplayName, (DirectoryEntry?)null, null); 421public DirectoryEntry GetDirectoryEntry() 913_subClassOf ??= new ActiveDirectorySchemaClass(_context, (string)GetValueFromCache(PropertyManager.SubClassOf, true)!, (DirectoryEntry?)null, _schemaEntry); 1112internal static Hashtable GetPropertiesFromSchemaContainer(DirectoryContext context, DirectoryEntry schemaEntry, string name, bool isDefunctOnServer) 1224internal DirectoryEntry GetSchemaClassDirectoryEntry() 1310DirectoryEntry de = res.GetDirectoryEntry(); 1382DirectoryEntry de = res.GetDirectoryEntry(); 1426using ActiveDirectorySchemaClass auxSchemaClass = new ActiveDirectorySchemaClass(_context, auxSchemaClassName, (DirectoryEntry?)null, null); 1438using ActiveDirectorySchemaClass auxSchemaClass = new ActiveDirectorySchemaClass(_context, auxSchemaClassName, (DirectoryEntry?)null, null);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClassCollection.cs (2)
11private DirectoryEntry? _classEntry; 33InnerList.Add(new ActiveDirectorySchemaClass(context, ldapDisplayName, (DirectoryEntry?)null, null));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (12)
24private DirectoryEntry? _schemaEntry; 25private DirectoryEntry? _propertyEntry; 26private DirectoryEntry? _abstractPropertyEntry; 143internal ActiveDirectorySchemaProperty(DirectoryContext context, string ldapDisplayName, DirectoryEntry? propertyEntry, DirectoryEntry? schemaEntry) 185internal ActiveDirectorySchemaProperty(DirectoryContext context, string commonName, SearchResult propertyValuesFromServer, DirectoryEntry schemaEntry) 208internal ActiveDirectorySchemaProperty(DirectoryContext context, string commonName, string ldapDisplayName, DirectoryEntry propertyEntry, DirectoryEntry schemaEntry) 302schemaProperty = new ActiveDirectorySchemaProperty(context, ldapDisplayName, (DirectoryEntry?)null, null); 458public DirectoryEntry GetDirectoryEntry() 1154internal static SearchResult GetPropertiesFromSchemaContainer(DirectoryContext context, DirectoryEntry schemaEntry, string name, bool isDefunctOnServer) 1282internal DirectoryEntry GetSchemaPropertyDirectoryEntry()
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaPropertyCollection.cs (2)
11private DirectoryEntry? _classEntry; 33this.InnerList.Add(new ActiveDirectorySchemaProperty(context, ldapDisplayName, (DirectoryEntry?)null, null));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (26)
33internal readonly DirectoryEntry cachedEntry; 34private DirectoryEntry? _ntdsEntry; 70DirectoryEntry de; 136DirectoryEntry? de = null; 178DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 374DirectoryEntry tmp = DirectoryEntryManager.GetDirectoryEntry(context, serverDN); 664DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 682private DirectoryEntry NTDSSiteEntry 688DirectoryEntry tmp = DirectoryEntryManager.GetDirectoryEntry(context, "CN=NTDS Site Settings," + (string)PropertyManager.GetPropertyValue(context, cachedEntry, PropertyManager.DistinguishedName)!); 732((DirectoryEntry)e.Value!).CommitChanges(); 751((DirectoryEntry)e.Value!).CommitChanges(); 772((DirectoryEntry)e.Value!).CommitChanges(); 810DirectoryEntry tmpEntry = cachedEntry.Children.Add("CN=NTDS Site Settings", "nTDSSiteSettings"); 900DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, serverContainer); 982DirectoryEntry serverEntry = DirectoryEntryManager.GetDirectoryEntry(context, _siteDN); 1043DirectoryEntry? ADAMEntry = null; 1072public DirectoryEntry GetDirectoryEntry() 1134DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 1179DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 1247DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 1271DirectoryEntry connectionEntry = result.GetDirectoryEntry(); 1385DirectoryEntry de = result.GetDirectoryEntry(); 1386DirectoryEntry? child = null; 1433DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, serverContainerDN); 1451DirectoryEntry? ADAMEntry = null; 1455DirectoryEntry resultEntry = result.GetDirectoryEntry();
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteCollection.cs (1)
11internal DirectoryEntry? de;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (8)
20internal readonly DirectoryEntry cachedEntry; 48DirectoryEntry de; 88DirectoryEntry tmpDE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 103internal ActiveDirectorySiteLink(DirectoryContext context, string siteLinkName, ActiveDirectoryTransportType transport, bool existing, DirectoryEntry entry) 125DirectoryEntry de; 166DirectoryEntry connectionEntry = srchResult.GetDirectoryEntry(); 177DirectoryEntry tmpDE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 631public DirectoryEntry GetDirectoryEntry()
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (8)
20internal DirectoryEntry? cachedEntry; 40DirectoryEntry de; 75DirectoryEntry tmpDE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 112DirectoryEntry de; 153DirectoryEntry connectionEntry = srchResult.GetDirectoryEntry(); 165DirectoryEntry tmpDE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 287public DirectoryEntry GetDirectoryEntry() 376DirectoryEntry entry = DirectoryEntryManager.GetDirectoryEntry(context, dn);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkCollection.cs (1)
11internal DirectoryEntry? de;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (5)
17internal DirectoryEntry cachedEntry = null!; 27DirectoryEntry de; 64DirectoryEntry connectionEntry = srchResult.GetDirectoryEntry(); 120DirectoryEntry? de = null; 340public DirectoryEntry GetDirectoryEntry()
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnetCollection.cs (4)
216((DirectoryEntry)changeList[dn]!).Properties["siteObject"].Value = _siteDN; 220DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(_context, MakePath(dn)); 243((DirectoryEntry)changeList[dn]!).Properties["siteObject"].Clear(); 247DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(_context, MakePath(dn));
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (15)
138DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 236DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 275DirectoryEntry? roleObjectEntry = null; 462DirectoryEntry ntdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 503DirectoryEntry serverEntry = directoryEntryMgr.GetCachedDirectoryEntry(ServerObjectName); 517DirectoryEntry ntdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 531DirectoryEntry ntdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 545DirectoryEntry? schemaEntry = null; 546DirectoryEntry? partitionsEntry = null; 591DirectoryEntry ntdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 617DirectoryEntry ntdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 672DirectoryEntry siteEntry = DirectoryEntryManager.GetDirectoryEntry(context, SiteObjectName); 719DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 744DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 769DirectoryEntry ntdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName);
System\DirectoryServices\ActiveDirectory\ADSearcher.cs (2)
13public ADSearcher(DirectoryEntry searchRoot, string filter, string[] propertiesToLoad, SearchScope scope) 29public ADSearcher(DirectoryEntry searchRoot, string? filter, string[] propertiesToLoad, SearchScope scope, bool pagedSearch, bool cacheResults)
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (21)
30private DirectoryEntry? _domainDNSEntry; 31private DirectoryEntry? _crossRefEntry; 130DirectoryEntry? appNCHead = null; 195DirectoryEntry? partitionsEntry = null; 281DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 546DirectoryEntry partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(context, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer)); 617DirectoryEntry partitionsEntry = _crossRefEntry.Parent; 650DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 664DirectoryEntry fsmoRootDSE = DirectoryEntryManager.GetDirectoryEntry(fsmoContext, WellKnownDN.RootDSE); 729public override DirectoryEntry GetDirectoryEntry() 914DirectoryEntry rootDSEEntry = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 938DirectoryEntry? tempEntry = null; 939DirectoryEntry? parent = null; 980DirectoryEntry? tempEntry = null; 981DirectoryEntry? parent = null; 1021DirectoryEntry? partitionsEntry = null; 1035DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 1064DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 1099internal DirectoryEntry GetCrossRefEntry() 1106DirectoryEntry partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(context, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer)); 1121DirectoryEntry partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(context, directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer));
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (15)
60foreach (DirectoryEntry entry in _directoryEntryMgr.GetCachedDirectoryEntries()) 106DirectoryEntry? rootDSE = null; 211public DirectoryEntry GetDirectoryEntry() 222DirectoryEntry configEntry = _directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.ConfigurationNamingContext); 238DirectoryEntry configEntry = _directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.ConfigurationNamingContext); 335private static DirectoryEntry GetSearchRootEntry(Forest forest) 337DirectoryEntry rootEntry; 351DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(forestContext, WellKnownDN.RootDSE); 385DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 401DirectoryEntry rootEntry = GetSearchRootEntry(Forest.GetCurrentForest()); 542DirectoryEntry tempRootEntry = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 579DirectoryEntry? entry = null; 625DirectoryEntry sitesEntry = _directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.SitesContainer); 663DirectoryEntry rootDSE = _directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 664DirectoryEntry partitionsEntry = _directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.PartitionsContainer);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
348DirectoryEntry de = new DirectoryEntry("WinNT://" + tempServerName + ",computer", context.UserName, context.Password, Utils.DefaultAuthType);
System\DirectoryServices\ActiveDirectory\DirectoryEntryManager.cs (20)
101internal DirectoryEntry GetCachedDirectoryEntry(WellKnownDN dn) 106internal DirectoryEntry GetCachedDirectoryEntry(string distinguishedName) 121DirectoryEntry de = GetNewDirectoryEntry(distinguishedName); 125return (DirectoryEntry)_directoryEntries[dn]!; 146DirectoryEntry? tmp = (DirectoryEntry?)_directoryEntries[dn]; 155private DirectoryEntry GetNewDirectoryEntry(string dn) 178DirectoryEntry rootDSE = GetCachedDirectoryEntry("RootDSE"); 185DirectoryEntry rootDSE = GetCachedDirectoryEntry("RootDSE"); 191DirectoryEntry rootDSE = GetCachedDirectoryEntry("RootDSE"); 197DirectoryEntry rootDSE = GetCachedDirectoryEntry("RootDSE"); 233internal static DirectoryEntry GetDirectoryEntry(DirectoryContext context, WellKnownDN dn) 238internal static DirectoryEntry GetDirectoryEntry(DirectoryContext context, string dn) 250internal static DirectoryEntry GetDirectoryEntryInternal(DirectoryContext context, string path) 255internal static DirectoryEntry Bind(string ldapPath, string? username, string? password, bool useServerBind) 257DirectoryEntry? de = null; 286DirectoryEntry rootDSE = GetDirectoryEntry(context, "RootDSE"); 300DirectoryEntry rootDSE = GetDirectoryEntry(context, "RootDSE"); 313DirectoryEntry rootDSE = GetDirectoryEntry(context, "RootDSE"); 326DirectoryEntry rootDSE = GetDirectoryEntry(context, "RootDSE");
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (9)
63foreach (DirectoryEntry entry in directoryEntryMgr.GetCachedDirectoryEntries()) 91DirectoryEntry? newParentEntry = null; 101DirectoryEntry serverEntry = directoryEntryMgr.GetCachedDirectoryEntry(serverName); 143public DirectoryEntry GetDirectoryEntry() 217DirectoryEntry? rootDSE = null; 218DirectoryEntry? serverNtdsaEntry = null; 356DirectoryEntry verifyEntry = DirectoryEntryManager.GetDirectoryEntry(this.context, partition); 768DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context), srchDN); 806DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(Utils.GetNewDirectoryContext(Name, DirectoryContextType.DirectoryServer, context), siteName);
System\DirectoryServices\ActiveDirectory\DirectoryServerCollection.cs (6)
19private readonly DirectoryEntry? _crossRefEntry; 33internal DirectoryServerCollection(DirectoryContext context, DirectoryEntry? crossRefEntry, bool isADAM, ReadOnlyDirectoryServerCollection servers) 302((DirectoryEntry)changeList[name]!).Properties["bridgeheadTransportList"].Value = this.transportDN; 306DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, serverName); 348((DirectoryEntry)changeList[name]!).Properties["bridgeheadTransportList"].Clear(); 352DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, serverName);
System\DirectoryServices\ActiveDirectory\Domain.cs (12)
101DirectoryEntry? rootDSE = null; 170DirectoryEntry? domainEntry = null; 270DirectoryEntry? domainEntry = null; 482public override DirectoryEntry GetDirectoryEntry() 828DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 932DirectoryEntry? domainEntry = null; 933DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 968DirectoryEntry? domainEntry = null; 1033DirectoryEntry? entry = null; 1081DirectoryEntry? partitionsEntry = null; 1143DirectoryEntry parentCrossRef = DirectoryEntryManager.GetDirectoryEntry(context, _trustParent); 1171DirectoryEntry? partitionsEntry = null;
System\DirectoryServices\ActiveDirectory\DomainController.cs (11)
150DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 265DirectoryEntry serverNtdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 289DirectoryEntry serverNtdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 325DirectoryEntry rootDSE = directoryEntryMgr.GetCachedDirectoryEntry(WellKnownDN.RootDSE); 377DirectoryEntry? roleObjectEntry = null; 602DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 623DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 646DirectoryEntry computerEntry = directoryEntryMgr.GetCachedDirectoryEntry(ComputerObjectName); 662DirectoryEntry computerEntry = directoryEntryMgr.GetCachedDirectoryEntry(ComputerObjectName); 875DirectoryEntry de; 1302DirectoryEntry de = new DirectoryEntry("LDAP://" + Name);
System\DirectoryServices\ActiveDirectory\Forest.cs (7)
72foreach (DirectoryEntry entry in _directoryEntryMgr.GetCachedDirectoryEntries()) 87DirectoryEntry? rootDSE = null; 181DirectoryEntry partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(_context, _directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer)); 762DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(_context, WellKnownDN.RootDSE); 791DirectoryEntry? entry = null; 924DirectoryEntry partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(_context, _directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer)); 991DirectoryEntry partitionsEntry = DirectoryEntryManager.GetDirectoryEntry(_context, _directoryEntryMgr.ExpandWellKnownDN(WellKnownDN.PartitionsContainer));
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (3)
59DirectoryEntry rootDSE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 185DirectoryEntry serverNtdsaEntry = directoryEntryMgr.GetCachedDirectoryEntry(NtdsaObjectName); 426DirectoryEntry de = new DirectoryEntry("GC://" + Name);
System\DirectoryServices\ActiveDirectory\PropertyManager.cs (2)
109public static object? GetPropertyValue(DirectoryEntry directoryEntry, string propertyName) 114public static object? GetPropertyValue(DirectoryContext? context, DirectoryEntry directoryEntry, string propertyName)
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (14)
26internal readonly DirectoryEntry cachedDirectoryEntry; 47DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 86DirectoryEntry connectionEntry = srchResult.GetDirectoryEntry(); 96internal ReplicationConnection(DirectoryContext context, DirectoryEntry connectionEntry, string name) 136DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 175DirectoryEntry tmpDE = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 247DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, sourceServerDN); 275DirectoryEntry? NTDSObject = null; 276DirectoryEntry? serverObject = null; 754DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 825DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 893public DirectoryEntry GetDirectoryEntry() 927DirectoryEntry? targetDE = null; 928DirectoryEntry? sourceDE = null;
System\DirectoryServices\ActiveDirectory\Utils.cs (15)
285DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, bindingDN); 307DirectoryEntry serversEntry = DirectoryEntryManager.GetDirectoryEntry(context, serversDn); 365DirectoryEntry serversEntry = DirectoryEntryManager.GetDirectoryEntry(context, serversDn); 727internal static bool CheckCapability(DirectoryEntry rootDSE, Capability capability) 770internal static DirectoryEntry GetCrossRefEntry(DirectoryContext context, DirectoryEntry partitionsEntry, string partitionName) 865DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(server.Context, siteName); 906DirectoryEntry srvEntry = srchResult.GetDirectoryEntry().Parent; 917DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(server.Context, serverObjectDN); 1042DirectoryEntry de = DirectoryEntryManager.GetDirectoryEntry(context, WellKnownDN.RootDSE); 1089internal static Hashtable GetValuesWithRangeRetrieval(DirectoryEntry searchRootEntry, string? filter, ArrayList propertiesToLoad, SearchScope searchScope) 1099internal static Hashtable GetValuesWithRangeRetrieval(DirectoryEntry searchRootEntry, string? filter, ArrayList propertiesWithRangeRetrieval, ArrayList propertiesWithoutRangeRetrieval, SearchScope searchScope) 1264DirectoryEntry? partitionsEntry = null; 1265DirectoryEntry? fsmoPartitionsEntry = null; 1361DirectoryEntry? searchRootEntry = null;
System\DirectoryServices\Design\DirectoryEntryConverter.cs (5)
36DirectoryEntry? newEntry = GetFromCache(text); 56return ((DirectoryEntry)value).Path; 67internal static DirectoryEntry? GetFromCache(string path) 71DirectoryEntry existingComponent = (DirectoryEntry)s_componentsCreated[path]!;
System\DirectoryServices\DirectoryEntries.cs (12)
15private readonly DirectoryEntry _container; 17internal DirectoryEntries(DirectoryEntry parent) 44public DirectoryEntry Add(string name, string schemaClassName) 48DirectoryEntry entry = new DirectoryEntry(newChild, _container.UsePropertyCache, _container.GetUsername(), _container.GetPassword(), _container.AuthenticationType); 56public DirectoryEntry Find(string name) 65public DirectoryEntry Find(string name, string? schemaClassName) 82/// Deletes a child <see cref='System.DirectoryServices.DirectoryEntry'/> from this collection. 84public void Remove(DirectoryEntry entry) 105private readonly DirectoryEntry _container; 107private DirectoryEntry? _currentEntry; 109internal ChildEnumerator(DirectoryEntry container) 121public DirectoryEntry Current
System\DirectoryServices\DirectoryEntry.cs (23)
48/// Initializes a new instance of the <see cref='System.DirectoryServices.DirectoryEntry'/>class. 56/// Initializes a new instance of the <see cref='System.DirectoryServices.DirectoryEntry'/> class that will bind 65/// Initializes a new instance of the <see cref='System.DirectoryServices.DirectoryEntry'/> class. 72/// Initializes a new instance of the <see cref='System.DirectoryServices.DirectoryEntry'/> class. 103/// Initializes a new instance of the <see cref='System.DirectoryServices.DirectoryEntry'/> class that will bind 194/// Gets the globally unique identifier of the <see cref='System.DirectoryServices.DirectoryEntry'/>. 292public DirectoryEntry Parent 331/// Gets or sets the path for this <see cref='System.DirectoryServices.DirectoryEntry'/>. 357/// Gets the name of the schema used for this <see cref='System.DirectoryServices.DirectoryEntry'/> 371/// Gets the <see cref='System.DirectoryServices.DirectoryEntry'/> that holds schema information for this 372/// entry. An entry's <see cref='System.DirectoryServices.DirectoryEntry.SchemaClassName'/> 375public DirectoryEntry SchemaEntry 512DirectoryEntry rootDSE = new DirectoryEntry("LDAP://RootDSE", true, null, null, AuthenticationTypes.Secure); 545internal DirectoryEntry CloneBrowsable() 547DirectoryEntry newEntry = new DirectoryEntry(this.Path, this.UsePropertyCache, this.GetUsername(), this.GetPassword(), this.AuthenticationType); 552/// Closes the <see cref='System.DirectoryServices.DirectoryEntry'/> 654public DirectoryEntry CopyTo(DirectoryEntry newParent) => CopyTo(newParent, null); 659public DirectoryEntry CopyTo(DirectoryEntry newParent, string? newName) 716DirectoryEntry entry = new DirectoryEntry(path); 864public void MoveTo(DirectoryEntry newParent) => MoveTo(newParent, null); 869public void MoveTo(DirectoryEntry newParent, string? newName)
System\DirectoryServices\DirectoryEntryConfiguration.cs (2)
10private readonly DirectoryEntry _entry; 13internal DirectoryEntryConfiguration(DirectoryEntry entry)
System\DirectoryServices\DirectorySearcher.cs (10)
18private DirectoryEntry? _searchRoot; 66public DirectorySearcher(DirectoryEntry? searchRoot) : this(searchRoot, defaultFilter, null, System.DirectoryServices.SearchScope.Subtree) 76public DirectorySearcher(DirectoryEntry? searchRoot, string? filter) : this(searchRoot, filter, null, System.DirectoryServices.SearchScope.Subtree) 86public DirectorySearcher(DirectoryEntry? searchRoot, string? filter, string[]? propertiesToLoad) : this(searchRoot, filter, propertiesToLoad, System.DirectoryServices.SearchScope.Subtree) 123public DirectorySearcher(DirectoryEntry? searchRoot, string? filter, string[]? propertiesToLoad, SearchScope scope) 229/// Gets the set of properties retrieved during the search. By default, the <see cref='System.DirectoryServices.DirectoryEntry.Path'/> 230/// and <see cref='System.DirectoryServices.DirectoryEntry.Name'/> properties are retrieved. 339public DirectoryEntry? SearchRoot 346DirectoryEntry rootDSE = new DirectoryEntry("LDAP://RootDSE", true, null, null, AuthenticationTypes.Secure); 611DirectoryEntry clonedRoot = SearchRoot!.CloneBrowsable();
System\DirectoryServices\PropertyCollection.cs (8)
11/// Contains the properties on a <see cref='System.DirectoryServices.DirectoryEntry'/>. 15private readonly DirectoryEntry _entry; 18internal PropertyCollection(DirectoryEntry entry) 108DirectoryEntry entryToUse = _entry.CloneBrowsable(); 175private readonly DirectoryEntry _entry; // clone (to be disposed) 176private readonly DirectoryEntry _parentEntry; // original entry to pass to PropertyValueCollection 179public PropertyEnumerator(DirectoryEntry parent, DirectoryEntry clone)
System\DirectoryServices\PropertyValueCollection.cs (2)
21private readonly DirectoryEntry _entry; 27internal PropertyValueCollection(DirectoryEntry entry, string propertyName)
System\DirectoryServices\SearchResult.cs (3)
24/// Retrieves the <see cref='System.DirectoryServices.DirectoryEntry'/> that corresponds to the <see cref='System.DirectoryServices.SearchResult'/>, from the Active Directory 27public DirectoryEntry GetDirectoryEntry() 33DirectoryEntry newEntry = new DirectoryEntry(Path, true, null, null, _parentAuthenticationType);
System\DirectoryServices\SearchResultCollection.cs (2)
22private readonly DirectoryEntry _rootEntry; // clone of parent entry object 29internal SearchResultCollection(DirectoryEntry root, IntPtr searchHandle, string[] propertiesLoaded, DirectorySearcher srch)
System.DirectoryServices.AccountManagement (296)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (15)
24public ADAMStoreCtx(DirectoryEntry ctxBase, bool ownCtxBase, string username, string password, string serverName, ContextOptions options) : base(ctxBase, ownCtxBase, username, password, options) 57protected internal override void InitializeNewDirectoryOptions(DirectoryEntry newDeChild) 67DirectoryEntry de = (DirectoryEntry)ap.UnderlyingObject; 113using (DirectoryEntry rootDse = new DirectoryEntry("LDAP://" + this.userSuppliedServerName + "/rootDse", "", "", AuthenticationTypes.Anonymous)) 169DirectoryEntry principalDE = (DirectoryEntry)p.UnderlyingObject; 184DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 218DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 243DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 267using (DirectoryEntry deRoot = new DirectoryEntry("LDAP://" + userSuppliedServerName + "/rootDSE", credentials?.UserName, credentials?.Password, authTypes)) 278using (DirectoryEntry deSCN = new DirectoryEntry("LDAP://" + userSuppliedServerName + "/" + SchemaNamingContext, credentials?.UserName, credentials?.Password, authTypes))
System\DirectoryServices\AccountManagement\AD\ADDNConstraintLinkedAttrSet.cs (2)
98dn = ((DirectoryEntry)this.current).Properties["distinguishedName"].Value.ToString(); 116resultPropCollection = new dSPropertyCollection(((DirectoryEntry)this.current).Properties);
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (29)
138if (this.current is DirectoryEntry) 139return ADUtils.DirectoryEntryAsPrincipal((DirectoryEntry)this.current, _storeCtx); 219_storeCtx.InitializeNewDirectoryOptions((DirectoryEntry)this.current); 221GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADDNLinkedAttrSet", "MoveNextMemberSearcher: returning primary group {0}", ((DirectoryEntry)this.current).Path); 375DirectoryEntry groupDE = SDSUtils.BuildDirectoryEntry(BuildPathFromDN(groupDN), _storeCtx.Credentials, _storeCtx.AuthTypes); 446DirectoryEntry memberDE = null; 555DirectoryEntry groupDE = SDSUtils.BuildDirectoryEntry( 589foreach (DirectoryEntry de in _foreignMembersCurrentGroup) 757string groupDN = (string)((DirectoryEntry)foreignPrincipal.UnderlyingObject).Properties["distinguishedName"].Value; 782DirectoryEntry foreignDE = (DirectoryEntry)foreignPrincipal.GetUnderlyingObject(); 821Debug.Assert(foreignGroup.UnderlyingObject is DirectoryEntry); 822Debug.Assert(((DirectoryEntry)foreignGroup.UnderlyingObject).Path.StartsWith("LDAP:", StringComparison.Ordinal)); 828_membersQueue.Enqueue(new RangeRetriever((DirectoryEntry)foreignGroup.UnderlyingObject, "member", true)); 830string groupDN = (string)((DirectoryEntry)foreignGroup.UnderlyingObject).Properties["distinguishedName"].Value; 851Debug.Assert(foreignGroup.UnderlyingObject is DirectoryEntry); 852Debug.Assert(((DirectoryEntry)foreignGroup.UnderlyingObject).Path.StartsWith("LDAP:", StringComparison.Ordinal)); 857DirectorySearcher ds = SDSUtils.ConstructSearcher((DirectoryEntry)foreignGroup.UnderlyingObject); 865string groupDN = (string)((DirectoryEntry)foreignGroup.UnderlyingObject).Properties["distinguishedName"].Value; 1080_foreignMembersCurrentGroup = new List<DirectoryEntry>(); 1081_fakePrincipalMembers = new List<DirectoryEntry>(); 1303private List<DirectoryEntry> _foreignMembersCurrentGroup = new List<DirectoryEntry>(); 1305private List<DirectoryEntry> _fakePrincipalMembers = new List<DirectoryEntry>(); 1310private DirectoryEntry _currentForeignDE; 1375public List<DirectoryEntry> foreignMembersCurrentGroup; 1376public List<DirectoryEntry> fakePrincipalMembers; 1379public DirectoryEntry currentForeignDE;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (67)
23protected DirectoryEntry ctxBase; 40protected internal virtual void InitializeNewDirectoryOptions(DirectoryEntry newDeChild) 280public ADStoreCtx(DirectoryEntry ctxBase, bool ownCtxBase, string username, string password, ContextOptions options) 300protected bool IsContainer(DirectoryEntry de) 303using (DirectoryEntry schemaDE = de.SchemaEntry) 379LoadDirectoryEntryAttributes((DirectoryEntry)p.UnderlyingObject); 391Debug.Assert(p.UnderlyingObject is DirectoryEntry); 393ADStoreKey key = new ADStoreKey(((DirectoryEntry)p.UnderlyingObject).Guid); 399GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "Insert: new GUID is ", ((DirectoryEntry)p.UnderlyingObject).Guid); 413SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.UnderlyingObject); 442return CannotChangePwdFromLdapConverter((DirectoryEntry)p.GetUnderlyingObject()); 489Debug.Assert(ap.GetUnderlyingObject() is DirectoryEntry); 491DirectoryEntry de = (DirectoryEntry)ap.GetUnderlyingObject(); 610DirectoryEntry de = (DirectoryEntry)ap.UnderlyingObject; 666Debug.Assert(p.UnderlyingObject is DirectoryEntry); 702Debug.Assert(p.UnderlyingObject is DirectoryEntry); 703SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.UnderlyingObject); 768SDSUtils.MoveDirectoryEntry((DirectoryEntry)p.GetUnderlyingObject(), 776((DirectoryEntry)p.GetUnderlyingObject()).Properties[baseObjectRdnPrefix].Value = (string)p.GetValueForProperty(PropertyNames.PrincipalName); 799DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 829DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 905DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 934DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 977DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 986DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 1148DirectoryEntry gcPrincipalDe = null; 1167List<DirectoryEntry> roots = new List<DirectoryEntry>(1); 1171DirectoryEntry principalDE = (DirectoryEntry)p.GetUnderlyingObject(); 1265foreach (DirectoryEntry de in roots) 1286foreach (DirectoryEntry de in roots) 1407DirectoryEntry dncContainer = null; 1409DirectoryEntry fspContainer = null; 1609DirectoryEntry principalDE = (DirectoryEntry)p.UnderlyingObject; 1642DirectoryEntry groupDE = (DirectoryEntry)g.UnderlyingObject; 1680dsMembers[0] = SDSUtils.ConstructSearcher((DirectoryEntry)g.UnderlyingObject); 1744Debug.Assert(g.UnderlyingObject != null && g.UnderlyingObject is DirectoryEntry); 1751Debug.Assert(p.UnderlyingObject != null && p.UnderlyingObject is DirectoryEntry); 1756DirectoryEntry principalDE = (DirectoryEntry)p.UnderlyingObject; 1757DirectoryEntry groupDE = (DirectoryEntry)g.UnderlyingObject; 1803DirectoryEntry defaultNCDirEntry = null; 1883DirectoryEntry groupDE = (DirectoryEntry)g.UnderlyingObject; 1985DirectoryEntry groupDE = (DirectoryEntry)g.UnderlyingObject; 1986DirectoryEntry memberDE = (DirectoryEntry)member.UnderlyingObject; 2050Debug.Assert(o is DirectoryEntry); 2051Debug.Assert(ADUtils.IsOfObjectClass((DirectoryEntry)o, "foreignSecurityPrincipal")); 2056DirectoryEntry fpoDE = (DirectoryEntry)o; 2187internal void LoadDirectoryEntryAttributes(DirectoryEntry de) 2439using (DirectoryEntry rootDse = new DirectoryEntry($"LDAP://{this.dnsHostName}:{port}/rootDse", "", "", AuthenticationTypes.Anonymous)) 2516DirectoryEntry domainNC = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (33)
37DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 237DirectoryEntry de = null; 242if (storeObject is DirectoryEntry) 244de = (DirectoryEntry)storeObject; 265DirectoryEntry dcEntry = null; 354Debug.Assert(p.UnderlyingObject is DirectoryEntry); 361DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 363Debug.Assert(p.GetUnderlyingObjectType() == typeof(DirectoryEntry)); 404Debug.Assert(p.UnderlyingObject is DirectoryEntry); 406DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 681return typeof(DirectoryEntry); 821protected delegate void ToLdapConverterDelegate(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty); 1065protected static bool CannotChangePwdFromLdapConverter(DirectoryEntry de) 1170protected static void StringToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1183protected static void BinaryToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1196protected static void MultiStringToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1201protected static void BoolToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1216protected static void AcctDisabledToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1230protected static void CommaStringToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1256protected static void CertToLdap(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1281protected static void UACToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1288protected static void AcctExpirToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1322protected static void ExtensionCacheToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1398protected static void GroupTypeToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty) 1476protected static void UpdateGroupMembership(Principal group, DirectoryEntry de, NetCred credentials, AuthenticationTypes authTypes) 1482DirectoryEntry groupDe = null; 1491DirectoryEntry copyOfDe = null; 1659DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 1679protected static void CannotChangePwdToLdapConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedAdProperty)
System\DirectoryServices\AccountManagement\AD\ADUtils.cs (4)
22internal static bool IsOfObjectClass(DirectoryEntry de, string classToCompare) 33internal static string GetServerName(DirectoryEntry de) 392internal static Principal DirectoryEntryAsPrincipal(DirectoryEntry de, ADStoreCtx storeCtx) 495internal static string RetrieveWkDn(DirectoryEntry deBase, string defaultNamingContext, string serverName, byte[] wellKnownContainerGuid)
System\DirectoryServices\AccountManagement\AD\RangeRetriever.cs (2)
31public RangeRetriever(DirectoryEntry de, string propertyName, bool disposeDirEntry) 236private readonly DirectoryEntry _de; // the DirectoryEntry whose property we're retrieving the values of
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (20)
78internal static Principal DirectoryEntryToPrincipal(DirectoryEntry de, PrincipalContext owningContext, Type principalType) 141private static bool IsOfObjectClass(DirectoryEntry de, string className) 175internal static void MoveDirectoryEntry(DirectoryEntry deToMove, DirectoryEntry newParent, string newName) 183internal static void DeleteDirectoryEntry(DirectoryEntry deToDelete) 185DirectoryEntry deParent = deToDelete.Parent; 264internal delegate void GroupMembershipUpdater(Principal p, DirectoryEntry de, NetCred credentials, AuthenticationTypes authTypes); 281DirectoryEntry de = (DirectoryEntry)storeCtx.PushChangesToNative(p); 307internal static void SetPassword(DirectoryEntry de, string newPassword) 339internal static void ChangePassword(DirectoryEntry de, string oldPassword, string newPassword) 373internal static DirectoryEntry BuildDirectoryEntry(string path, NetCred credentials, AuthenticationTypes authTypes) 375DirectoryEntry de = new DirectoryEntry(path, 385internal static DirectoryEntry BuildDirectoryEntry(NetCred credentials, AuthenticationTypes authTypes) 387DirectoryEntry de = new DirectoryEntry(); 407DirectoryEntry copyOfDe = null; 449DirectoryEntry copyOfDe = null; 597internal static void MultiStringToDirectoryEntryConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedProperty) 643DirectoryEntry de, 767internal static DirectorySearcher ConstructSearcher(DirectoryEntry de)
System\DirectoryServices\AccountManagement\AD\TokenGroupsSet.cs (2)
35private DirectoryEntry _current; // current member of the group (or current group of the user) 56DirectoryEntry currentDE = SDSUtils.BuildDirectoryEntry(
System\DirectoryServices\AccountManagement\Context.cs (7)
623DirectoryEntry de = null; 727DirectoryEntry de = new DirectoryEntry("LDAP://" + serverName + _container, _username, _password, authTypes); 776DirectoryEntry deUserGroupOrg = null; 777DirectoryEntry deComputer = null; 778DirectoryEntry deBase = null; 791DirectoryEntry deRootDse = null; 1166private StoreCtx CreateContextFromDirectoryEntry(DirectoryEntry entry)
System\DirectoryServices\AccountManagement\Group.cs (2)
367DirectoryEntry de = (DirectoryEntry)this.UnderlyingObject;
System\DirectoryServices\AccountManagement\Principal.cs (3)
641Debug.Assert(this.GetUnderlyingObjectType() == typeof(DirectoryEntry)); 642DirectoryEntry de = (DirectoryEntry)this.GetUnderlyingObject();
System\DirectoryServices\AccountManagement\SAM\SAMGroupsSet.cs (4)
16internal SAMGroupsSet(UnsafeNativeMethods.IADsMembers iADsMembers, SAMStoreCtx storeCtx, DirectoryEntry ctxBase) 61DirectoryEntry de = SDSUtils.BuildDirectoryEntry( 95private readonly DirectoryEntry _ctxBase; 99private DirectoryEntry _current;
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (10)
17internal SAMMembersSet(string groupPath, UnsafeNativeMethods.IADsGroup group, bool recursive, SAMStoreCtx storeCtx, DirectoryEntry ctxBase) 130DirectoryEntry de = SDSUtils.BuildDirectoryEntry( 243DirectoryEntry de = SDSUtils.BuildDirectoryEntry( 278DirectoryEntry foreignDE = _foreignMembers[0]; 504_foreignMembers = new List<DirectoryEntry>(); 579private DirectoryEntry _current; // current member of the group (if enumerating local group and found a real principal) 588private List<DirectoryEntry> _foreignMembers = new List<DirectoryEntry>(); 601public DirectoryEntry current; 604public List<DirectoryEntry> foreignMembers;
System\DirectoryServices\AccountManagement\SAM\SAMQuerySet.cs (25)
21DirectoryEntry ctxBase, 93DirectoryEntry entry = (DirectoryEntry)_enumerator.Current; 140private bool IsOfCorrectType(DirectoryEntry de) 178private readonly DirectoryEntry _ctxBase; 181private DirectoryEntry _current; // the DirectoryEntry that we're currently positioned at 197internal abstract bool Matches(DirectoryEntry de); 246internal override bool Matches(DirectoryEntry de) 344private delegate bool MatcherDelegate(FilterBase filter, string winNTPropertyName, DirectoryEntry de); 346private static bool DateTimeMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 408private static bool StringMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 435private static bool IntMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 470private static bool SamAccountNameMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 496private static bool SidMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 511private static bool UserFlagsMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 566private static bool MultiStringMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 594private static bool BinaryMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 619private static bool ExpirationDateMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 647private static bool GroupTypeMatcher(FilterBase filter, string winNTPropertyName, DirectoryEntry de) 686internal override bool Matches(DirectoryEntry de) 715private bool MatchOnLogonTime(DirectoryEntry de) 731private bool MatchOnAccountExpirationTime(DirectoryEntry de) 747private bool MatchOnPasswordSetTime(DirectoryEntry de) 815internal override bool Matches(DirectoryEntry groupDE) 835DirectoryEntry memberDE = new DirectoryEntry(nativeMember);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (30)
14private readonly DirectoryEntry _ctxBase; 158public SAMStoreCtx(DirectoryEntry ctxBase, bool ownCtxBase, string username, string password, ContextOptions options) 236((DirectoryEntry)p.UnderlyingObject).RefreshCache(); 242Debug.Assert(p.UnderlyingObject is DirectoryEntry); 243DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 272Debug.Assert(p.UnderlyingObject is DirectoryEntry); 303Debug.Assert(p.UnderlyingObject is DirectoryEntry); 307SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.UnderlyingObject); 323PropertyValueCollection values = ((DirectoryEntry)p.GetUnderlyingObject()).Properties["UserFlags"]; 373DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 389DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 422DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 428DirectoryEntry copyOfDe = null; 470DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 496DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 536DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 626DirectoryEntry userDE = (DirectoryEntry)p.UnderlyingObject; 762DirectoryEntry groupDE = (DirectoryEntry)g.UnderlyingObject; 811Debug.Assert(o is DirectoryEntry); 814DirectoryEntry foreignDE = (DirectoryEntry)o;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (38)
33DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 202Debug.Assert(storeObject is DirectoryEntry); 204DirectoryEntry de = (DirectoryEntry)storeObject; 227Debug.Assert(p.UnderlyingObject is DirectoryEntry); 229DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 278Debug.Assert(p.UnderlyingObject is DirectoryEntry); 280DirectoryEntry de = (DirectoryEntry)p.UnderlyingObject; 565DirectoryEntry de = SDSUtils.BuildDirectoryEntry(_credentials, _authTypes); 631return typeof(DirectoryEntry); 758private delegate void FromWinNTConverterDelegate(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName); 763private delegate void ToWinNTConverterDelegate(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM); 768private static void StringFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 780private static void SidFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 789private static void SamAccountNameFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 800private static void MultiStringFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 806private static void IntFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 811private static void BinaryFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 816private static void CertFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 820private static void GroupTypeFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 844private static void EmailFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 848private static void LastBadPwdAttemptFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 852private static void ElapsedTimeFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 873private static void DateFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 889private static void UserFlagsFromWinNTConverter(DirectoryEntry de, string suggestedWinNTProperty, Principal p, string propertyName) 900private static void ExceptionToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 908private static void StringToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 921private static void MultiStringToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 926private static void LogonHoursToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 951private static void CertToWinNT(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 958private static void GroupTypeToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 978private static void EmailToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 985private static void AcctExpirDateToNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 999private static void UserFlagsToWinNTConverter(Principal p, string propertyName, DirectoryEntry de, string suggestedWinNTProperty, bool isLSAM) 1006private static void UpdateGroupMembership(Principal group, DirectoryEntry de, NetCred credentials, AuthenticationTypes authTypes)
System\DirectoryServices\AccountManagement\SAM\SAMUtils.cs (3)
16internal static bool IsOfObjectClass(DirectoryEntry de, string classToCompare) 23internal static bool GetOSVersion(DirectoryEntry computerDE, out int versionMajor, out int versionMinor) 93internal static Principal DirectoryEntryAsPrincipal(DirectoryEntry de, StoreCtx storeCtx)