)
// The start of the original expression...
&&
&&
* Note, the above example denies logins passed the limit. If you prefer to allow the credentials
based login to continue, and simply limit the MAC accounts created, swap
for
Amigopod |Technical Note
&&
(NwaRadiusLocalServer()->GetUserCount(array(
// sponsor_name is set to the username on create.
'sponsor_name'
=> strtolower(GetAttr('User-Name')),
// delete_time is 0 for valid accounts.
'delete_time'
=> 0,
// Only search for devices.
'mac_auth'
=>
1)
// Check that the returned count is greater than the allowed.
)
>=
$MAX_MAC_ACCOUNTS)
// If it is, then the AccessReject()* will stop the rest of the expression.
// If it is not, then the 1 will allow the expression to continue.
?
(AccessReject()
&&
empty($user['mac_auth'])
...
?
(AccessReject()
&&
?
0
:
1
0)
:
1
0)
:
1
Auto Create MAC
Account|25
Need help?
Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?