X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=authserver%2Fwww%2Fadmin.php;h=7f2c8a39f3efe3a38a5242b674efc8e41d9e1cd2;hb=684d7cc6c2ce6ba3f1ca5c48dda5c4efa9448455;hp=e214751ec30f5cdbf1b1341b5f9ea3856175420f;hpb=1e9b1b3a5c4dd1f033ae5f3145d7bb7bcd73a4d6;p=ga4php.git diff --git a/authserver/www/admin.php b/authserver/www/admin.php index e214751..7f2c8a3 100644 --- a/authserver/www/admin.php +++ b/authserver/www/admin.php @@ -17,10 +17,78 @@ 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 re-create a key. +
  • TOTP tokens are time based tokens that change every 30 seconds, HOTP tokens are event tokens +that change everytime they are used or generated +
  • In the OTK, the "Get (User URL)" link is a link you can send to a user to retrieve their key + + +

    Editing user,


    +
    +"> + + + + +
    Real Name:">
    Password:
    Confirm Password:
    + +
    +getUserTokenType($username)=="HOTP") { +?> +
    +

    Resync Tokens

    + + + +
    Token One
    Token Two
    + +
    + + +
    +

    Custom Tokens


    +For assiging in a user-created or hardware tokens.
    +If you assign a token this way, any previous token is removed and forever gone.
    +Token Key (hex)
    +Token Type +
    + +
    +

    Users

    - +getUsers(); foreach($users as $user) { @@ -29,25 +97,32 @@ foreach($users as $user) { if($user["realname"] == "") $realname = ""; else $realname = $user["realname"]; - if($user["haspass"]) $haspass = "Yes Delete Password"; - else $haspass = "No "; - - if($user["hastoken"]) $hastoken = "Yes"; - else $hastoken = "No"; + if($user["haspass"]) $haspass = "Yes Delete Password"; + else $haspass = "No"; - if($user["otk"]!="") $otk = "Get"; + if($user["otk"]=="deleted") $otk = "OTK Was Not Picked Up"; + else if($user["otk"]!="") $otk = "Get (admin)Get (User URL)"; else $otk = "Already Claimed"; + if($user["hastoken"]) $hastoken = "Yes Re-Create (HOTP)Re-Create (TOTP)Delete"; + else { + $hastoken = "No Create (HOTP)Create (TOTP)"; + if($user["otk"]!="deleted")$otk = "No Token Exists"; + } + $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:
    +
    Create User(s) - Enter a comma seperated list of usernames:

    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 +169,5 @@ if(isset($_REQUEST["message"])) {
    \ No newline at end of file