// We are caching the MAC for a local user account.
//
'id' only exists for local accounts
&&
((!empty($user['id'])
// Required field to act as the confirmation.
'creator_accept_terms'=>1,
// The normalized MAC.
'mac'=>$mac,
// Flag as a MAC so it shows in List Devices.
'mac_auth'=>1,
// The role ID.
'role_id'=>5,
// The original username
'visitor_name'=>$user['username'],
// Formally pair the two accounts.
// Cross links between accounts in the GUI.
'mac_auth_pair'=>$user['id'],
// Expire on the current day at 5pm.
'modify_expire_time'=>'today
// Overwrite the account if it already exists.
'auto_update_account'=>1)))
// Authentication is via an external server
||
(empty($user['id'])
// Required field to act as the confirmation.
'creator_accept_terms'=>1,
// The normalized MAC.
'mac'=>$mac,
// Flag as a MAC so it shows in List Devices.
'mac_auth'=>1,
// The role ID.
'role_id'=>5,
// The original username
// Could use $user['displayname'] here or some other attribute returned from the server.
'visitor_name'=>$user['username'],
// Setup a sponsor name.
// Sponsor names can be used for filtering accounts within operating logins.
'sponsor_name'=>$user['username'],
// Expire on the current day at 5pm
'modify_expire_time'=>'today
// Set the account to be disconnected via RFC-3576 if necessary.
'do_expire'=>4,
// Overwrite the account if it already exists.
'auto_update_account'=>1)))
)
// Make sure the expression is never returned
&& 0;
12| Auto Create MAC Account
&&
NwaCreateUser(array(
Use $user['role_id'] to use this same role.
Exclude to match the base $user value.
17:00',
&&
NwaCreateUser(array
Use $user['role_id'] to use this same role.
17:00',
A number of data items synched
Amigopod |Technical Note
Need help?
Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?