AMIGOPOD PowerConnect W Clearpass 100 Software Manual page 11

Auto create mac auth account (authentication based) technote
Hide thumbs Also See for PowerConnect W Clearpass 100 Software:
Table of Contents

Advertisement

Add MAC Account Creation attribute
To automatically create the new MAC authentication account, a condition expression is used
within a Null attribute. This conditional expression will call internal Amigopod libraries to create
the MAC authentication account based on the received Calling-Station-ID in the RADIUS
Authentication Request packet.
Attribute: Tmp-String-0
Value: Role creation expression (or some other descriptive string, the attribute won't be returned
for authentication)
Condition: Enter condition expression...
Expression:
return
empty($user['mac_auth'])
&&
NwaDynamicLoad('NwaCreateUser')
&&
NwaDynamicLoad('NwaNormalizeMacAddress')
&&
($mac=NwaNormalizeMacAddress(GetAttr('Calling-Station-Id')))
&&
((!empty($user['id'])
'creator_accept_terms'=>1,
'mac'=>$mac,
'mac_auth'=>1,
'role_id'=>5,
'visitor_name'=>$user['username'],
'mac_auth_pair'=>$user['id'],
'auto_update_account'=>1)))
||
(empty($user['id'])
'creator_accept_terms'=>1,
'role_id'=>5,
'mac'=>$mac,
'mac_auth'=>1,
'visitor_name'=>$user['username'],
'sponsor_name'=>$user['username'],
'modify_expire_time'=>'today
'do_expire'=>4,
'auto_update_account'=>1)))
)
&& 0;
Annotated Expression:
return
// Not already a MAC device...
empty($user['mac_auth'])
// Required call to load a function.
&&
NwaDynamicLoad('NwaCreateUser')
// Required call to load a function.
&&
NwaDynamicLoad('NwaNormalizeMacAddress'
// All MACs need to be normalized.
&&
($mac=NwaNormalizeMacAddress(GetAttr('Calling-Station-Id')))
Amigopod |Technical Note
&&
NwaCreateUser(array(
&&
NwaCreateUser(array(
17:00',
Auto Create MAC
Account|11

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?

This manual is also suitable for:

Amigopod

Table of Contents