]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0 server: Include phase2=0 users for TLS in the user list
authorJouni Malinen <jouni@codeaurora.org>
Mon, 3 Dec 2018 21:38:20 +0000 (23:38 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 3 Dec 2018 21:38:20 +0000 (23:38 +0200)
EAP-TLS users are not really using phase2, so do not require the
database to be set in a way that claim that inaccurately.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
hs20/server/www/users.php

index f546de3a95de5bd40b75b3e8938ab36ffe457031..ea5995c4ff9419f3cb737e7c798e5fdfa65a669c 100644 (file)
@@ -319,7 +319,7 @@ echo "<br>\n";
 echo "<table border=1 cellspacing=0 cellpadding=0>\n";
 echo "<tr><th>User<th>Realm<th><small>Remediation</small><th>Policy<th><small>Account type</small><th><small>Phase 2 method(s)</small><th>DevId<th>MAC Address<th>T&C\n";
 
-$res = $db->query('SELECT rowid,* FROM users WHERE phase2=1 ORDER BY identity');
+$res = $db->query('SELECT rowid,* FROM users WHERE (phase2=1 OR methods=\'TLS\') ORDER BY identity');
 foreach ($res as $row) {
        echo "<tr><td><a href=\"users.php?id=" . $row['rowid'] . "\"> " .
            $row['identity'] . " </a>";