Yes you are right but I have some problems in config:<br>I set a vpn server address in client.conf and in users as:<br><br>DEFAULT Client-IP-Address == 192.168.20.13, Auth-Type := Vpn, Autz-Type := Vpn, <br><br>in radiusd.conf:<br>
<br>ldap ldap-Vpn{<br> server = "192.168.10.1"<br> .....<br> profile_attribute = "vpnProfileDn"<br> access_attr = "vpnAccess"<br> ....<br>
}<br>sqlcounter monthly-Vpn {<br> counter-name = Monthly-Session-Time<br> check-name = Max-Monthly-Session<br> sqlmod-inst = sql-Vpn<br> key = User-Name<br>
reset = monthly<br>query = "SELECT SUM(AcctSessionTime - GREATEST((%b - UNIX_TIMESTAMP(AcctStartTime)), 0)) FROM radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > %b "<br>
}<br>Autz-Type Vpn{<br> ldap-Vpn<br> monthly-Vpn<br> }<br> Auth-Type Vpn{<br> ldap-Vpn<br> }<br> Acct-Type Vpn {<br> sql-Vpn<br> } <br><br>
Now the users that come from this vpn server are the same but there are parameters in ldap server that are different in admins and other users. I want give to admins' session-timeout different amount than others, but counter gives remain of monthly-count to users as session-timeout.<br>
It is good for regular users but how and where I should give this parameter to admins as different amount?<br>