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)
47internal NetworkCredential GetCredential() => _directoryCredential;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (6)
79if (AuthType == AuthType.Anonymous && (_directoryCredential != null && (!string.IsNullOrEmpty(_directoryCredential.Password) || !string.IsNullOrEmpty(_directoryCredential.UserName)))) 149if (_bounded && !SameCredential(_directoryCredential, value)) 990public void Bind() => BindHelper(_directoryCredential, needSetCredential: false); 1015tempCredential = _directoryCredential;