Security

last person joined: yesterday 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

CPPM Web Login - Static Username Password

This thread has been viewed 24 times
  • 1.  CPPM Web Login - Static Username Password

    MVP
    Posted Sep 15, 2016 12:46 PM

    Have a need to configure a custom web login page with a static username/password, which is also hidden from the user. We want to provide the user a button that says "Login" and that's it. It will do a RADIUS request against a local account on CPPM for access. 

     

    I've gone through the Guest HTML Cheatsheet and thought I had it working, but no dice. Anybody have the code needed to autofill the form's username/password and hide it from view?

     

    Thanks.



  • 2.  RE: CPPM Web Login - Static Username Password

    EMPLOYEE
    Posted Sep 15, 2016 12:48 PM
    Set the initial value of each field to the credentials and then change the
    user interface to hidden.


  • 3.  RE: CPPM Web Login - Static Username Password

    MVP
    Posted Sep 15, 2016 12:50 PM

    For a web login page where do you set initial values?



  • 4.  RE: CPPM Web Login - Static Username Password

    EMPLOYEE
    Posted Sep 15, 2016 12:55 PM
    Sorry misread. You'd want to use the "Anonymous" option under Login Form in
    the web login and then enter in your username.


  • 5.  RE: CPPM Web Login - Static Username Password

    MVP
    Posted Sep 15, 2016 01:03 PM
    Correct, but I need the request to be a RADIUS request. Or at least hit Policy Manager to do some custom enforcements. I tried using anonymous with local account yesterday and didn't see anything in access tracker.

    Michael Haring | Mobility Engineer
    Comm Solutions Company
    Direct: (610) 246-6037
    Office: (610) 889-1280 x176
    Email: mharing@commsolutions.com

    Sent from Outlook Web App


  • 6.  RE: CPPM Web Login - Static Username Password
    Best Answer

    MVP
    Posted Sep 15, 2016 04:42 PM

    After working with Aruba, I was able to get this together, tested, and working. Make sure all code is in FOOTER of web login page.

     

    Static Username / Static Password filled into form:

     

    {nwa_script src=jquery.min} 

    {literal}

    <script>

    $(function () {

      $('input[name=user]').val("your_static_username"); // hardcoded username field

      $('input[name=password]').val("your_static_password"); // hardcoded password field

    });

    </script>

    {/literal}

     

    Form hidden from user, but still on page:

     

    {literal}

    <style>

    /* hide the form */

    .nwaForm {

        display: none;

    }

    </style>

    {/literal}

     

    Custom Login button that has a label of “Logout” and submits the hidden form:

     

    <button onclick="document.forms[0].submit(); return false;">Logout</button>



  • 7.  RE: CPPM Web Login - Static Username Password

    Posted Feb 17, 2020 08:45 AM

    Maybe a stupid question, but how do you hide just the username field as this hides everything at in the footer box?

     

    {literal}

    <style>

    /* hide the form */

    .nwaForm {

        display: none;

    }

    </style>

    {/literal}



  • 8.  RE: CPPM Web Login - Static Username Password

    Posted Jun 13, 2021 06:13 AM
    Hello

    I was also wondering how to hide just the username field. Did you found this?

    Kind regards