X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=authserver%2Fwww%2Fadmin.php;h=b35a2270771e46b07f6aa79856423daf78654d73;hp=e214751ec30f5cdbf1b1341b5f9ea3856175420f;hb=d4590a3f34021216c9da29786922fddaf804d113;hpb=1438f7f5c47f3f5c55bc8e13aa566530840e0310 diff --git a/authserver/www/admin.php b/authserver/www/admin.php index e214751..b35a227 100644 --- a/authserver/www/admin.php +++ b/authserver/www/admin.php @@ -17,10 +17,59 @@ require_once("admin_actions.php"); if($loggedin) { ?>

GAAS Manager

-Welcome to the Google Authenticator Authentication Server Manager Application
+Welcome to the Google Authenticator Authentication Server Manager Application - Show Help
+ +".$_REQUEST["message"].""; +} +if(isset($_REQUEST["error"])) { + echo "".$_REQUEST["error"].""; +} + + +if(isset($_REQUEST["showhelp"])) { + echo "
"; + ?> +On this page, you create users and manage their tokens and passwords. A few notes,
+
  • Passwords are *ONLY* for this page, if you assign a password to a user they can login here +and edit anyone, including you +
  • OTK/One-Time-Keys are the QRcode for provisioning a GA token, it can only be viewed once +and once viewed is deleted. If you need a new one, you need to delete the user and re-create. + + +

    Editing user,


    +
    +"> + + + + +
    Real Name:">
    Password:
    Confirm Password:
    + +
    +
    +

    Custom Tokens - doesnt work yet


    +For assiging in a user-created or hardware tokens
    +Token Key (hex)
    +Token Type +
    + +
    +

    Users

    - +getUsers(); foreach($users as $user) { @@ -29,25 +78,28 @@ foreach($users as $user) { if($user["realname"] == "") $realname = ""; else $realname = $user["realname"]; - if($user["haspass"]) $haspass = "Yes Delete Password"; - else $haspass = "No "; + if($user["haspass"]) $haspass = "Yes Delete Password"; + else $haspass = "No"; - if($user["hastoken"]) $hastoken = "Yes"; - else $hastoken = "No"; + if($user["hastoken"]) $hastoken = "Yes Re-Create (hotp)Re-Create (totp)Delete"; + else $hastoken = "No Create (hotp)Create (totp)"; if($user["otk"]!="") $otk = "Get"; else $otk = "Already Claimed"; $delete = "Delete"; - echo ""; - echo ""; -} + echo ""; + echo ""; + echo ""; +} ?>
    UsernameRealNameHas Password?Has Token?One Time KeyUpdateDelete
    UsernameRealNameHas Password?Has Token?One Time KeyDelete
    $username$haspass$hastoken$otk$delete
    $username$realname$haspass$hastoken$otk$delete

    Create User(s) - Enter a comma seperated list of names:

    Radius Clients

    Not yet implemented -
    Logout +
    Logout Home GAAS Manager Login Login Failed"; + echo "".$_REQUEST["message"].""; +} +if(isset($_REQUEST["error"])) { + echo "".$_REQUEST["error"].""; } ?>
    @@ -91,5 +146,5 @@ if(isset($_REQUEST["message"])) {
    \ No newline at end of file