diff --git a/modules/negotiate/lib/Auth/Source/Negotiate.php b/modules/negotiate/lib/Auth/Source/Negotiate.php index 2a5667e211b7ada00a9e3a531280a6e81c84951e..a22630276f93ea2083da6d4373d80c89bdabddbd 100644 --- a/modules/negotiate/lib/Auth/Source/Negotiate.php +++ b/modules/negotiate/lib/Auth/Source/Negotiate.php @@ -116,9 +116,9 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source assert('FALSE'); } - SimpleSAML\Logger::debug('Negotiate - authenticate(): looking for Negotate'); + SimpleSAML\Logger::debug('Negotiate - authenticate(): looking for Negotiate'); if (!empty($_SERVER['HTTP_AUTHORIZATION'])) { - SimpleSAML\Logger::debug('Negotiate - authenticate(): Negotate found'); + SimpleSAML\Logger::debug('Negotiate - authenticate(): Negotiate found'); $this->ldap = new SimpleSAML_Auth_LDAP( $this->hostname, $this->enableTLS, @@ -151,7 +151,7 @@ class sspmod_negotiate_Auth_Source_Negotiate extends SimpleSAML_Auth_Source $user = $auth->getAuthenticatedUser(); SimpleSAML\Logger::info('Negotiate - authenticate(): '.$user.' authenticated.'); $lookup = $this->lookupUserData($user); - if ($lookup) { + if ($lookup !== null) { $state['Attributes'] = $lookup; // Override the backend so logout will know what to look for $state['LogoutState'] = array(