* Fixed a bug in sql/change_attrs which did not allow multi valued attributes in sql.
* unset item_vals before adding info in ldap and sql user_info files.
* Add support for the rest of the operators. Created the lib/operators.php3 file containing helper functions
+* Fix a small bug in log_badlogins. The nas domain should be a variable not hard coded.
Ver 1.28:
* Make user_delete.php3 print something when a user is deleted
* Cache nas hostname lookups in user_accounting
$|=1;
$file=shift||'none';
-$conf=shift||'/usr/local/dialup_admin/conf/admin.conf';
+$conf=shift||'/src/cvs/radiusd/dialup_admin/conf/admin.conf';
+$domain='company.com';
open CONF, "<$conf"
or die "Could not open configuration file\n";
$caller='' if (!defined($caller));
$user =~s/[^\w]//g;
$nas =~s/[^\w]//g;
- if ($nas !~ /\.noc\.ntua\.gr$/){
- $nas .= '.noc.ntua.gr';
+ if ($nas !~ /\.$domain$/){
+ $nas .= '.$domain';
}
$port =~s/[^\d]//g;
$caller =~s/[^\d]//g;