X-Git-Url: http://git.pjr.cc/?p=ga4php.git;a=blobdiff_plain;f=archive%2Fauthserver_v1.0%2Fwww%2Fadmin.php;fp=archive%2Fauthserver_v1.0%2Fwww%2Fadmin.php;h=d27777214351782417d1199f0b62a63fa9b2d302;hp=0000000000000000000000000000000000000000;hb=ee45b81ae7117097934cacc0c129565fddb49fc4;hpb=ac262b9b316777bed9e908b8b85200b8a14256f7 diff --git a/archive/authserver_v1.0/www/admin.php b/archive/authserver_v1.0/www/admin.php new file mode 100644 index 0000000..d277772 --- /dev/null +++ b/archive/authserver_v1.0/www/admin.php @@ -0,0 +1,200 @@ + +

GAAS Manager

+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 +
    + +
    + +this page is for editing radius clients, it doesnt exist yet.. What you need to do is delete the client and re-add it... go back + + +

    Users

    + + +getUsers(); +foreach($users as $user) { + $username = $user["username"]; + + if($user["realname"] == "") $realname = ""; + else $realname = $user["realname"]; + + if($user["haspass"]) $haspass = "Yes Delete Password"; + else $haspass = "No"; + + 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 ""; +} +?> +
    UsernameRealNameHas Password?Has Token?One Time KeyDelete
    $username$realname$haspass$hastoken$otk$delete

    +
    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

    + + +getRadiusClients(); +foreach($msg as $client) { + if($client["desc"]=="") $desc = "no description set"; + else $desc = $client["desc"]; + $clientname = $client["name"]; + $clientip = $client["ip"]; + echo ""; +} +?> +
    NameIP AddressDescriptionDelete
    $clientname$clientip$descDelete
    +
    +

    Add a Radius Client

    +
    + + + + + +
    Client Name
    Client IP
    Client Secret
    Client Description
    + +
    +
    Logout Home + + +

    GAAS Manager Login

    +".$_REQUEST["message"].""; +} +if(isset($_REQUEST["error"])) { + echo "".$_REQUEST["error"].""; +} +?> +
    + + + + +
    Username
    Password
    +
    + \ No newline at end of file