Skip to content

Commit

Permalink
M #-: LDAP user_uid might be nil (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel authored Aug 27, 2020
1 parent b841f9e commit 08bfe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authm_mad/remotes/ldap/authenticate
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ order.each do |servers|
break
end

if user_uid.downcase != user.downcase
if !user_uid.nil? && user_uid.downcase != user.downcase
STDERR.puts "User \"#{user}\" and \"#{user_uid}\" "\
"differes (leading/trailing whitespace)"
break
Expand Down

0 comments on commit 08bfe6f

Please sign in to comment.