Dell PowerConnect W Clearpass 100 Software Auto Create MAC Auth Account (Authe - Page 25
If you prefer to allow the credentials
View all Dell PowerConnect W Clearpass 100 Software manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 25 highlights
&& (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() && 0) : 1 ) // The start of the original expression... && empty($user['mac_auth']) && ... * 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 ? (AccessReject() && 0) : 1 for ? 0 : 1 Amigopod |Technical Note Auto Create MAC Account|25