Skip to content

Commit

Permalink
fix condition for triggering ldap simple bind or ldap sasl bind (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Jan 8, 2025
1 parent 84b3294 commit 79b2ab6
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 @@ -57,7 +57,7 @@ function connect() {
}

# Bind
if ( isset($this->ldap_binddn) && isset($this->ldap_bindpw) ) {
if ( !empty($this->ldap_binddn) ) {
$bind = \Ltb\PhpLDAP::ldap_bind($ldap, $this->ldap_binddn, $this->ldap_bindpw);
} elseif ( isset($this->ldap_krb5ccname) ) {
putenv("KRB5CCNAME=".$this->ldap_krb5ccname);
Expand Down

0 comments on commit 79b2ab6

Please sign in to comment.