Derin, works for me like this:


With just clearpass, the form is accepted. Note you see the message only when you click the submit button.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
------------------------------
Original Message:
Sent: May 05, 2021 06:12 AM
From: Derin Mellor
Subject: On CPG struggling to get the username field REGEX working
In ClearPass 6.9.5 I'm trying to use the regex filter on the username's field to only allow username that do not have an @ in it. The requirement is for a conference enrolment system. The idea is that the University creates a conference name with a PIN (short password) as a guest account tied to a specific role_id and expiry-time. Attendees enroll for the conference (and are then forced to register their details and this account inherits the conference's expiry-time - see problem with Expire-Time-Update:GuestUser I raised yesterday and the role_id). To differentiate guests from conferences the conference username has no @ character. I created the regex expression ^[^@]*$ which verbally translates as from the beginning on the line (^) don't match @ ([^@]) or every character (*) to the end of the string ($). I validated this filter at Regex Tester and if seems to work - ie if there is a @ in the string it fails to match. I then put it into the perl format: /^[^@]*$/ and put it into this form's username field:


But this does not work. Any advice?
------------------------------
Derin Mellor
------------------------------