38 references to LdapError
System.DirectoryServices.Protocols (38)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (4)
766
if (error == (int)
LdapError
.TimeOut)
768
error = (int)
LdapError
.SendTimeOut;
1582
error = (int)
LdapError
.TimeOut;
1675
if (resultError == (int)
LdapError
.LocalError)
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (2)
109
error = (int)
LdapError
.NotSupported;
116
error = (int)
LdapError
.AuthUnknown;
System\DirectoryServices\Protocols\ldap\LdapException.cs (30)
40
private static readonly Dictionary<
LdapError
, string> s_resultCodeMapping = new Dictionary<
LdapError
, string>(capacity: 20)
42
{
LdapError
.IsLeaf, SR.LDAP_IS_LEAF },
43
{
LdapError
.InvalidCredentials, SR.LDAP_INVALID_CREDENTIALS },
44
{
LdapError
.ServerDown, SR.LDAP_SERVER_DOWN },
45
{
LdapError
.LocalError, SR.LDAP_LOCAL_ERROR },
46
{
LdapError
.EncodingError, SR.LDAP_ENCODING_ERROR },
47
{
LdapError
.DecodingError, SR.LDAP_DECODING_ERROR },
48
{
LdapError
.TimeOut, SR.LDAP_TIMEOUT },
49
{
LdapError
.AuthUnknown, SR.LDAP_AUTH_UNKNOWN },
50
{
LdapError
.FilterError, SR.LDAP_FILTER_ERROR },
51
{
LdapError
.UserCancelled, SR.LDAP_USER_CANCELLED },
52
{
LdapError
.ParameterError, SR.LDAP_PARAM_ERROR },
53
{
LdapError
.NoMemory, SR.LDAP_NO_MEMORY },
54
{
LdapError
.ConnectError, SR.LDAP_CONNECT_ERROR },
55
{
LdapError
.NotSupported, SR.LDAP_NOT_SUPPORTED },
56
{
LdapError
.NoResultsReturned, SR.LDAP_NO_RESULTS_RETURNED },
57
{
LdapError
.ControlNotFound, SR.LDAP_CONTROL_NOT_FOUND },
58
{
LdapError
.MoreResults, SR.LDAP_MORE_RESULTS_TO_RETURN },
59
{
LdapError
.ClientLoop, SR.LDAP_CLIENT_LOOP },
60
{
LdapError
.ReferralLimitExceeded, SR.LDAP_REFERRAL_LIMIT_EXCEEDED },
61
{
LdapError
.SendTimeOut, SR.LDAP_SEND_TIMEOUT }
74
s_resultCodeMapping.TryGetValue((
LdapError
)errorCode, out string errorMessage);
80
LdapError
error = (
LdapError
)NormalizeResultCode(errorCode);
81
if (error ==
LdapError
.IsLeaf || error ==
LdapError
.InvalidCredentials || error ==
LdapError
.SendTimeOut)
86
return (error >=
LdapError
.ServerDown && error <=
LdapError
.ReferralLimitExceeded);
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (2)
155
throw new LdapException((int)
LdapError
.TimeOut, LdapErrorMappings.MapResultCode((int)
LdapError
.TimeOut));