Skip to content

Commit 17e2fe6

Browse files
committed
fix multiline block
1 parent 63d7bbb commit 17e2fe6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/net/ldap/auth_adapter/gss_spnego.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ def bind(auth)
2222
user, psw = [auth[:username] || auth[:dn], auth[:password]]
2323
raise Net::LDAP::BindingInformationInvalidError, "Invalid binding information" unless (user && psw)
2424

25+
nego = proc do |challenge|
2526
t2_msg = NTLM::Message.parse(challenge)
2627
t3_msg = t2_msg.response({ :user => user, :password => psw },
2728
{ :ntlmv2 => true })
2829
t3_msg.serialize
30+
end
2931

3032
Net::LDAP::AuthAdapter::Sasl.new(@connection).bind \
3133
:method => :sasl,

0 commit comments

Comments
 (0)