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