X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=authserver%2Fwww%2Fadmin.php;h=d27777214351782417d1199f0b62a63fa9b2d302;hb=f10680a1827dd8e4c65eaaef810ee7fd498e5a1e;hp=b35a2270771e46b07f6aa79856423daf78654d73;hpb=d4590a3f34021216c9da29786922fddaf804d113;p=ga4php.git diff --git a/authserver/www/admin.php b/authserver/www/admin.php index b35a227..d277772 100644 --- a/authserver/www/admin.php +++ b/authserver/www/admin.php @@ -35,7 +35,10 @@ On this page, you create users and manage their tokens and passwords. A few note
  • 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. +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 +getUserTokenType($username)=="HOTP") { +?> +
    +

    Resync Tokens

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

    Custom Tokens - doesnt work yet


    -For assiging in a user-created or hardware tokens
    +

    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

    @@ -81,12 +105,16 @@ foreach($users as $user) { if($user["haspass"]) $haspass = "Yes Delete Password"; else $haspass = "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"; + 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 ""; @@ -95,7 +123,7 @@ foreach($users as $user) { } ?>
    -
    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 - + + +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