X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=authserver%2Fwww%2Fadmin.php;h=7f2c8a39f3efe3a38a5242b674efc8e41d9e1cd2;hb=c3c37cd9f486175adf0351de80c19efd02892ca6;hp=fa6f6df4abab23054dc73c90dd322b9ba5d32dc2;hpb=0938694abe67f09a9a21f922a3178a6be9e59e63;p=ga4php.git diff --git a/authserver/www/admin.php b/authserver/www/admin.php index fa6f6df..7f2c8a3 100644 --- a/authserver/www/admin.php +++ b/authserver/www/admin.php @@ -11,16 +11,84 @@ * then user admin would be less disconnected. I.e. if a user was deleted from AD, their token * data should disappear with them. */ -require_once("actions.php"); +require_once("admin_actions.php"); // the logged in component 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,31 +97,47 @@ 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?OTKUpdateDelete
    UsernameRealNameHas Password?Has Token?One Time KeyDelete
    $username$haspass$hastoken$otk$delete
    $username$realname$haspass$hastoken$otk$delete

    -
    Create User:
    +
    Create User(s) - Enter a comma seperated list of usernames:
    +Got One Time Key for user $username, this one-time-key can only be retrieved once, after that it is deleted
    "; + echo "\"one
    "; +} + +?>

    Radius Clients

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