* Add an entry in the FAQ about the Dialup-Access attribute
* Add an entry in the FAQ about duplicate personal attributes in the user_admin page
* Only show the personal attributes in the New User page if we have ldap or we are using the userinfo table in sql
+* Add a per nas finger_type directive
Ver 1.62:
* Remove one sql query from user_admin which was not needed.
* Instead of a query like "LIKE 'YYYY-MM-DD%'" use "AcctStopTime >= 'YYYY-MM-DD 00:00:00 AND AcctStopTime
nas2_ip: 147.122.122.123
nas2_port_num: 16
nas2_community: public
+#
+# finger type can also be set per NAS
+# snmp: Use snmp to query the NAS
+# database: Only query the sql database
+#
+# If it is not set, general_finger_type is assumed
+nas2_finger_type: database
nas3_name: nas3.%{general_domain}
nas3_model: Cisco 5300 access server
nas3_ip: 147.122.122.124
$community = $nas . '_community';
$ip = $nas . '_ip';
$portnum = $nas . '_port_num';
+ $finger_type = $nas . '_finger_type';
if ($config[$name] == ''){
$i--;
if ($config[general_ld_library_path] != '')
putenv("LD_LIBRARY_PATH=$config[general_ld_library_path]");
$extra = "";
- if ($config[general_finger_type] == 'snmp'){
+ if ($config[$finger_type] != 'database' && $config[general_finger_type] == 'snmp'){
$users=exec("$config[general_snmpfinger_bin] $name_data $community_data");
if (strlen($users))
$extra = "AND UserName IN ($users)";