adding [-] in the regular expression did not work. I even tried the expression in post 6. None of them assigned the role so the default role is assigned.
When I change the source data from radius:ietf calling-station-id to connection:client-mac-address with the original regular expression the role is assigned.
Testing with radius:ietf calling-station-id equels mac-address of test cliet(copied from access tracker input tab) did not assign the role either. Tests with other radius:ietf attributes from the radius request input tab information did not assign any role either. Atributes from other dictionaries (in this case radius:aruba) did assign the role. Looks like the radius:ietf dictionary is no longer allowed in role mappings. Screenshots are from my lab environment. Lab is using Clearpass 6.12.3
I will change the customers role mapping using connection:client-mac-address
rgds, Erik
------------------------------
Erik Eckhardt
ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
------------------------------
Original Message:
Sent: Dec 17, 2024 11:02 AM
From: erike
Subject: regular expression not working in 6.12
Thanks Carson. I will run some test and report back.
Unfortunately the customer is moving away from Aruba Wireless.
------------------------------
Erik Eckhardt
ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
------------------------------
Original Message:
Sent: Dec 17, 2024 10:24 AM
From: chulcher
Subject: regular expression not working in 6.12
If you look at the source data, Radius:IETF:Calling-Station-Id, you'll see that the MAC address is hyphen delimited, and your expression doesn't account for the hyphens.
RegEx for MAC address that is hyphen delimited ^(?:[0-9A-Fa-f]{2}[-]){5}(?:[0-9A-Fa-f]{2})$
If your wireless environment is HPE Aruba Networking, and the point of different roles based on the MAC address is to place devices in different VLANs, you'd be better off using a VLAN pool.
------------------------------
Carson Hulcher, ACEX#110
Original Message:
Sent: Dec 17, 2024 03:46 AM
From: erike
Subject: regular expression not working in 6.12
screenshots 6.10
------------------------------
Erik Eckhardt
ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
Original Message:
Sent: Dec 17, 2024 03:43 AM
From: erike
Subject: regular expression not working in 6.12
screenshots 6.12.3
role mapping condition 3 and 6 have been added to get a working setup. default role has been changed for getting a working setup for condition 7 an 8
. access tracker screenshots are from a authentication before these
changes.
------------------------------
Erik Eckhardt
ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
Original Message:
Sent: Dec 16, 2024 02:19 PM
From: erike
Subject: regular expression not working in 6.12
these expressions are used in a role-mapping. pretty straightforward
role mapping
expression 1 > role 1
expression 2> role 2
enforcement policy
role 1 > vlan 1 profile
role 2> vlan 2 profile
Role is not assigned so alert shows default profile: [default deny profile]
access tracker shows access denied with non of the roles assigned in 6.12 Access tracker shows role assigned in 6.10 same role mapping
I'll make screen shots tomorrow
thanks.
Erik
------------------------------
Erik Eckhardt
ACEX #149 ACCX #1527 ACMX #1245, ACDX #968, ACSP, ACNSP
Original Message:
Sent: Dec 16, 2024 01:27 PM
From: chulcher
Subject: regular expression not working in 6.12
Where and how are you using the RegEx? What shows in the log? Anything on the Alert tab?
Is the value you're evaluating against non-delimited?
What is it that you are load-balancing against/for?
------------------------------
Carson Hulcher, ACEX#110