From 5f4ce8087b566efe5eac2de7465a005f675b6a56 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 5b93b0d..e70057c 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);