23 references to DirectoryEntry
System.DirectoryServices (9)
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (2)
948
tempEntry = new
DirectoryEntry
("LDAP://" + context.GetServerName() + "/" + distinguishedName, context.UserName, context.Password, authType);
990
tempEntry = new
DirectoryEntry
("LDAP://" + context.Name + "/" + distinguishedName, context.UserName, context.Password, authType);
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (3)
362
rootEntry = new
DirectoryEntry
("GC://" + forestContext.GetServerName(), forestContext.UserName, forestContext.Password, authType);
366
rootEntry = new
DirectoryEntry
("LDAP://" + forestContext.GetServerName(), forestContext.UserName, forestContext.Password, authType);
372
rootEntry = new
DirectoryEntry
("GC://" + forest.Name, forestContext.UserName, forestContext.Password, authType);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (1)
348
DirectoryEntry de = new
DirectoryEntry
("WinNT://" + tempServerName + ",computer", context.UserName, context.Password, Utils.DefaultAuthType);
System\DirectoryServices\ActiveDirectory\DirectoryEntryManager.cs (1)
269
de = new
DirectoryEntry
(ldapPath, username, password, authType);
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
877
de = new
DirectoryEntry
("LDAP://" + dc.Name + "/RootDSE", context.UserName, context.Password, Utils.DefaultAuthType | AuthenticationTypes.ServerBind);
System\DirectoryServices\DirectoryEntry.cs (1)
67
public DirectoryEntry(string? path, string? username, string? password) :
this
(path, username, password, AuthenticationTypes.Secure)
System.DirectoryServices.AccountManagement (14)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (3)
113
using (DirectoryEntry rootDse = new
DirectoryEntry
("LDAP://" + this.userSuppliedServerName + "/rootDse", "", "", AuthenticationTypes.Anonymous))
267
using (DirectoryEntry deRoot = new
DirectoryEntry
("LDAP://" + userSuppliedServerName + "/rootDSE", credentials?.UserName, credentials?.Password, authTypes))
278
using (DirectoryEntry deSCN = new
DirectoryEntry
("LDAP://" + userSuppliedServerName + "/" + SchemaNamingContext, credentials?.UserName, credentials?.Password, authTypes))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (4)
1213
roots.Add(new
DirectoryEntry
("GC://" + gc.Name + "/" + p.DistinguishedName, this.credentials?.UserName, this.credentials?.Password, this.AuthTypes));
1419
dncContainer = new
DirectoryEntry
(@"LDAP://" + this.UserSuppliedServerName + @"/" + this.DefaultNamingContext, Credentials != null ? this.Credentials.UserName : null, Credentials != null ? this.Credentials.Password : null, this.AuthTypes);
1428
fspContainer = new
DirectoryEntry
(fspWkDn, Credentials != null ? this.credentials.UserName : null, Credentials != null ? this.credentials.Password : null, this.authTypes);
2439
using (DirectoryEntry rootDse = new
DirectoryEntry
($"LDAP://{this.dnsHostName}:{port}/rootDse", "", "", AuthenticationTypes.Anonymous))
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
375
DirectoryEntry de = new
DirectoryEntry
(path,
System\DirectoryServices\AccountManagement\Context.cs (6)
636
de = new
DirectoryEntry
("WinNT://" + hostname + ",computer", _username, _password, authTypes);
727
DirectoryEntry de = new
DirectoryEntry
("LDAP://" + serverName + _container, _username, _password, authTypes);
810
deRootDse = new
DirectoryEntry
("LDAP://" + serverName + "rootDse", _username, _password, authTypes);
828
deBase = new
DirectoryEntry
(adsPathBase, _username, _password, authTypes);
889
deUserGroupOrg = new
DirectoryEntry
(adsPathUserGroupOrg, _username, _password, authTypes);
890
deComputer = new
DirectoryEntry
(adsPathComputer, _username, _password, authTypes);