1 write to credentials
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (1)
294
this.
credentials
= new NetCred(username, password);
25 references to credentials
System.DirectoryServices.AccountManagement (25)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (4)
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 (21)
32
protected internal NetCred Credentials { get { return this.
credentials
; } }
372
this.
credentials
,
673
this.
credentials
,
979
SDSUtils.WriteAttribute(de.Path, attribute, value, this.
credentials
, this.authTypes);
988
SDSUtils.WriteAttribute<T>(de.Path, attribute, value, this.
credentials
, this.authTypes);
1192
Forest forest = Forest.GetForest(new DirectoryContext(DirectoryContextType.Forest, this.DnsForestName, this.
credentials
?.UserName, this.
credentials
?.Password));
1194
DirectoryContext dc = new DirectoryContext(DirectoryContextType.Domain, this.DnsDomainName, this.
credentials
?.UserName, this.
credentials
?.Password);
1213
roots.Add(new DirectoryEntry("GC://" + gc.Name + "/" + p.DistinguishedName, this.
credentials
?.UserName, this.
credentials
?.Password, this.AuthTypes));
1428
fspContainer = new DirectoryEntry(fspWkDn, Credentials != null ? this.
credentials
.UserName : null, Credentials != null ? this.
credentials
.Password : null, this.authTypes);
1603
if (ADUtils.VerifyOutboundTrust(this.DnsDomainName, this.
credentials
?.UserName, this.
credentials
?.Password))
1605
return new AuthZSet(sid, this.
credentials
, this.contextOptions, this.FlatDomainName, this, this.ctxBase);
1810
defaultNCDirEntry = SDSUtils.BuildDirectoryEntry(path, this.
credentials
, this.authTypes);
2104
int err = Utils.LookupSid(serverName, this.
credentials
, sid, out name, out domainName, out accountUsage);
2131
PrincipalContext remoteCtx = SDSCache.Domain.GetContext(domainName, this.
credentials
, remoteOptions);
2222
this.
credentials
,
2518
this.
credentials
,