From 78b8aa5335e8f0d227b028b9d46b8e02542a9af3 Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Thu, 27 Aug 2020 10:55:51 +0200 Subject: [PATCH] M #-: LDAP user_uid might be nil (#158) --- src/authm_mad/remotes/ldap/authenticate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authm_mad/remotes/ldap/authenticate b/src/authm_mad/remotes/ldap/authenticate index c6d21ac7f7e..07388648993 100755 --- a/src/authm_mad/remotes/ldap/authenticate +++ b/src/authm_mad/remotes/ldap/authenticate @@ -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