We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f20d319 commit 220f95aCopy full SHA for 220f95a
1 file changed
lib/Auth/Source/X509userCert.php
@@ -154,7 +154,8 @@ public function authenticate(&$state)
154
}
155
156
$ldap_certs = $ldapcf->getAttributes($dn, $this->ldapusercert);
157
- if ($ldap_certs === false) {
+
158
+ if (empty($ldap_certs)) {
159
\SimpleSAML\Logger::error('authX509: no certificate found in LDAP for dn='.$dn);
160
$state['authX509.error'] = "UNKNOWNCERT";
161
$this->authFailed($state);
0 commit comments