30 references to AuthType
System.DirectoryServices.Protocols (30)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (26)
45
private
AuthType
_connectionAuthType =
AuthType
.Negotiate;
58
public LdapConnection(LdapDirectoryIdentifier identifier) : this(identifier, null,
AuthType
.Negotiate)
62
public LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential) : this(identifier, credential,
AuthType
.Negotiate)
66
public unsafe LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential,
AuthType
authType)
73
if (authType <
AuthType
.Anonymous || authType >
AuthType
.Kerberos)
75
throw new InvalidEnumArgumentException(nameof(authType), (int)authType, typeof(
AuthType
));
79
if (AuthType ==
AuthType
.Anonymous && (_directoryCredential != null && (!string.IsNullOrEmpty(_directoryCredential.Password) || !string.IsNullOrEmpty(_directoryCredential.UserName))))
89
internal unsafe LdapConnection(LdapDirectoryIdentifier identifier, NetworkCredential credential,
AuthType
authType, IntPtr handle)
122
public
AuthType
AuthType
127
if (value <
AuthType
.Anonymous || value >
AuthType
.Kerberos)
129
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
AuthType
));
1002
if (AuthType ==
AuthType
.Anonymous && (newCredential != null && (!string.IsNullOrEmpty(newCredential.Password) || !string.IsNullOrEmpty(newCredential.UserName))))
1044
if (AuthType ==
AuthType
.Anonymous)
1048
else if (AuthType ==
AuthType
.Basic)
1068
if (AuthType ==
AuthType
.Kerberos)
1087
case
AuthType
.Negotiate:
1090
case
AuthType
.Kerberos:
1093
case
AuthType
.Ntlm:
1096
case
AuthType
.Digest:
1099
case
AuthType
.Sicily:
1102
case
AuthType
.Dpa:
1105
case
AuthType
.Msn:
1108
case
AuthType
.External:
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (4)
88
if (tempCredential == null && (AuthType ==
AuthType
.External || AuthType ==
AuthType
.Kerberos))
115
Debug.Assert(AuthType !=
AuthType
.Anonymous && AuthType !=
AuthType
.Basic);