Skip to content

Commit

Permalink
fix undefined krb5ccname (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur authored and davidcoutadeur committed Nov 27, 2024
1 parent cd8ada3 commit 5f4ce80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ltb/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f4ce80

Please sign in to comment.