23 references to DirectoryEntry
System.DirectoryServices (9)
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 (1)
877de = new DirectoryEntry("LDAP://" + dc.Name + "/RootDSE", context.UserName, context.Password, Utils.DefaultAuthType | AuthenticationTypes.ServerBind);
System\DirectoryServices\DirectoryEntry.cs (1)
67public DirectoryEntry(string? path, string? username, string? password) : this(path, username, password, AuthenticationTypes.Secure)
System.DirectoryServices.AccountManagement (14)
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 (1)
375DirectoryEntry de = new DirectoryEntry(path,
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);