Skip to content

Commit

Permalink
Fix Psalm-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Mar 25, 2019
1 parent f20d319 commit 220f95a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Auth/Source/X509userCert.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ public function authenticate(&$state)
}

$ldap_certs = $ldapcf->getAttributes($dn, $this->ldapusercert);
if ($ldap_certs === false) {

if (empty($ldap_certs)) {
\SimpleSAML\Logger::error('authX509: no certificate found in LDAP for dn='.$dn);
$state['authX509.error'] = "UNKNOWNCERT";
$this->authFailed($state);
Expand Down

0 comments on commit 220f95a

Please sign in to comment.