We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 944ea47 commit 5bcde6eCopy full SHA for 5bcde6e
lib/net/ldap/auth_adapter/sasl.rb
@@ -4,7 +4,7 @@ module Net
4
class LDAP
5
class AuthAdapter
6
class Sasl < Net::LDAP::AuthAdapter
7
- MaxSaslChallenges = 10
+ MAX_SASL_CHALLENGES = 10
8
9
#--
10
# Required parameters: :mechanism, :initial_credential and
@@ -49,7 +49,7 @@ def bind(auth)
49
end
50
51
return pdu unless pdu.result_code == Net::LDAP::ResultCodeSaslBindInProgress
52
- raise Net::LDAP::SASLChallengeOverflowError, "sasl-challenge overflow" if ((n += 1) > MaxSaslChallenges)
+ raise Net::LDAP::SASLChallengeOverflowError, "sasl-challenge overflow" if ((n += 1) > MAX_SASL_CHALLENGES)
53
54
cred = chall.call(pdu.result_server_sasl_creds)
55
0 commit comments