cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
 
ISE 2.3 Patch 7 has been posted. This will be the last patch for the ISE 2.3 release!
Choose one of the topics below to view our ISE Resources to help you on your journey with ISE

This community is for technical, feature, configuration and deployment questions.
For production deployment issues, please contact the TAC! We will not comment or assist with your TAC case in these forums.
Please see How to Ask the Community for Help for other best practices.

828
Views
3
Helpful
8
Replies
Highlighted

ISE Credentialed guest Portal hide username in login box

Hello,

I need help with the jQuery or jscript with ISE 2.2, to populate and hide the login text box for  a sponsored portal page. Users should only see the password box on the portal page.

This is the code I have right now, but currently stuck.

<script>

jQuery(window).load(function() {

jQuery("input[name='user.username']").val("LOGIN");

});

</script>

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: ISE: Sponsored Portal hide login box

With the help of paul@berbee here was the missing code I needed to add to the optional content 2.

<script>

portalloginForm.elements["user.username"].value = 'UserName-test';

portalloginForm.elements["user.username"].style.visibility = 'hidden';

portalloginForm.elements["user.username"].type = 'hidden';

</script>

8 REPLIES 8
VIP Engager

Re: ISE: Sponsored Portal hide login box

I don't know the jquery syntax but this works to hide password field and could be modified for username:

<script>

portalloginForm.elements["user.password"].value = '0';

portalloginForm.elements["user.password"].style.visibility = 'hidden';

portalloginForm.elements["user.password"].type = 'hidden';

</script>

What are you trying to accomplish by hiding the username?

Re: ISE: Sponsored Portal hide login box

HI Paul, its because there is no other way to create a simply password only with auto rotation with ISE, so have to hack it a little.

VIP Engager

Re: ISE: Sponsored Portal hide login box

Ahh I figured you might be doing something like that. So using a normal hotspot portal with passcode and manually changing the passcode every month is not an option? You could also do an API, but that is probably overkill.

Re: ISE: Sponsored Portal hide login box

API is considered to custom for this build so we are pointing it to an external free radius with a bash script that updates a single user for password rotation.  The other option requires budget that doesnt exist for the password/access code updates.

VIP Engager

Re: ISE: Sponsored Portal hide login box

Makes sense. I am sure you tested this already, but because you are using an External RADIUS server in the authentication sequence the “guest” user will be treated as an Employee for Endpoint Identity Group mapping. So in the guest portal make sure to map the Employee use case to the desired endpoint identity group and use that in your rule structure.

Paul Haferman

Office- 920.996.3011

Cell- 920.284.9250

Re: ISE Credentialed guest Portal hide username in login box

Not sure what you mean by that. I have had to set up an external Radius server and will have to use a Autho rule to point it that way.

Feel free to DM me.

Re: ISE: Sponsored Portal hide login box

With the help of paul@berbee here was the missing code I needed to add to the optional content 2.

<script>

portalloginForm.elements["user.username"].value = 'UserName-test';

portalloginForm.elements["user.username"].style.visibility = 'hidden';

portalloginForm.elements["user.username"].type = 'hidden';

</script>

Beginner

Re: ISE: Sponsored Portal hide login box

Hi Jonathon , 

 

Just wanted to know if your script is still working as you expect and if there was a possibility to share the script that you put in Optional content 2 in the login form ? 

 

Thanks

Regards 

Marc