Security

Reply
MVP
Posts: 395
Registered: ‎05-09-2013

CPPM Web Login - Static Username Password

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.


Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
Guru Elite
Posts: 8,732
Registered: ‎09-08-2010

Re: CPPM Web Login - Static Username Password

Set the initial value of each field to the credentials and then change the
user interface to hidden.

Tim Cappalli | Aruba Security TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
MVP
Posts: 395
Registered: ‎05-09-2013

Re: CPPM Web Login - Static Username Password

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


Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
Guru Elite
Posts: 8,732
Registered: ‎09-08-2010

Re: CPPM Web Login - Static Username Password

Sorry misread. You'd want to use the "Anonymous" option under Login Form in
the web login and then enter in your username.

Tim Cappalli | Aruba Security TME
@timcappalli | timcappalli.me | ACMX #367 / ACCX #480
MVP
Posts: 395
Registered: ‎05-09-2013

Re: CPPM Web Login - Static Username Password

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

Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
MVP
Posts: 395
Registered: ‎05-09-2013

Re: CPPM Web Login - Static Username Password

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>


Thank you.

Michael Haring | AIS Consultant
Architecture and Implementation Solutions
Optiv Security Inc. | www.optiv.com
Search Airheads
Showing results for 
Search instead for 
Did you mean: