From 96099a81f9787bc09bb212378279b896fe78e19b Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Tue, 16 Feb 2016 14:19:37 +0100
Subject: [PATCH] Fix missing argument

This fixes:
[Tue Feb 16 13:50:09 2016] [error] [client 10.48.224.4] PHP Warning:  Missing argument 2 for SimpleSAML_Error_AuthSource::__construct(), called in /apps/simplesamlphp-bd-1.14.0/modules/negotiate/lib/Auth/Source/Negotiate.php on line 336
[Tue Feb 16 13:50:09 2016] [error] [client 10.48.224.4] PHP Notice:  Undefined variable: reason in /apps/simplesamlphp-bd-1.14.0/lib/SimpleSAML/Error/AuthSource.php(31)
---
 modules/negotiate/lib/Auth/Source/Negotiate.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/negotiate/lib/Auth/Source/Negotiate.php b/modules/negotiate/lib/Auth/Source/Negotiate.php
index 0103d5439..ed90e1728 100644
--- a/modules/negotiate/lib/Auth/Source/Negotiate.php
+++ b/modules/negotiate/lib/Auth/Source/Negotiate.php
@@ -333,7 +333,7 @@ EOF;
         if (!$this->ldap->bind($this->admin_user, $this->admin_pw)) {
             $msg = 'Unable to authenticate system user (LDAP_INVALID_CREDENTIALS) '.var_export($this->admin_user, true);
             SimpleSAML_Logger::error('Negotiate - authenticate(): '.$msg);
-            throw new SimpleSAML_Error_AuthSource($msg);
+            throw new SimpleSAML_Error_AuthSource('negotiate', $msg);
         }
     }
 
-- 
GitLab