5 writes to _directoryCredential
System.DirectoryServices.Protocols (5)
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (1)
41
_directoryCredential
= (value != null) ? new NetworkCredential(value.UserName, value.Password, value.Domain) : null;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (4)
69
_directoryCredential
= (credential != null) ? new NetworkCredential(credential.UserName, credential.Password, credential.Domain) : null;
94
_directoryCredential
= credential;
154
_directoryCredential
= (value != null) ? new NetworkCredential(value.UserName, value.Password, value.Domain) : null;
1011
_directoryCredential
= tempCredential = (newCredential != null ? new NetworkCredential(newCredential.UserName, newCredential.Password, newCredential.Domain) : null);
7 references to _directoryCredential
System.DirectoryServices.Protocols (7)
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (1)
47
internal NetworkCredential GetCredential() =>
_directoryCredential
;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (6)
79
if (AuthType == AuthType.Anonymous && (
_directoryCredential
!= null && (!string.IsNullOrEmpty(
_directoryCredential
.Password) || !string.IsNullOrEmpty(
_directoryCredential
.UserName))))
149
if (_bounded && !SameCredential(
_directoryCredential
, value))
990
public void Bind() => BindHelper(
_directoryCredential
, needSetCredential: false);
1015
tempCredential =
_directoryCredential
;