From e2dc696d219ce486e256d72e615049916da564b6 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Thu, 21 Nov 2024 11:47:44 +0100 Subject: [PATCH] fix undefined krb5ccname (#52) --- src/Ltb/Ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ltb/Ldap.php b/src/Ltb/Ldap.php index 936ea7b..caffd45 100644 --- a/src/Ltb/Ldap.php +++ b/src/Ltb/Ldap.php @@ -60,7 +60,7 @@ function connect() { if ( isset($this->ldap_binddn) && isset($this->ldap_bindpw) ) { $bind = \Ltb\PhpLDAP::ldap_bind($ldap, $this->ldap_binddn, $this->ldap_bindpw); } elseif ( isset($this->ldap_krb5ccname) ) { - putenv("KRB5CCNAME=".$ldap_krb5ccname); + putenv("KRB5CCNAME=".$this->ldap_krb5ccname); $bind = \Ltb\PhpLDAP::ldap_sasl_bind($ldap, NULL, NULL, 'GSSAPI') or error_log('LDAP - GSSAPI Bind failed'); } else { $bind = \Ltb\PhpLDAP::ldap_bind($ldap);