Re: dialup-admin ... error in delete_user.php3, line 18

2002-03-10 Thread Kostas Kalevras

On Sat, 9 Mar 2002, Peter Santiago wrote:

 code fragment reads
  if ($res){
if ($config[sql_use_user_info_table] == 'true'){
 $res = @da_sql_query($config[sql_database], - error.. this
 will return false
DELETE FROM $config[sql_user_info_table] WHERE UserName
 = '$login';);
 if ($res)
 echo bUser $login deleted
 successfully/bbr\n;
  else
  echo bError deleting user $login from user
 info table/bbr\n;
 }

 Isn't that line supposed to read

 $res = @da_sql_query($link,$config, DELETE FROM
 $config[sql_user_info_table] WHERE UserName = '$login';);

 ???


 Peter


 -
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Yes you 're right. Bug fixed in cvs

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Exec-Program and Acct-Status-Type

2002-03-10 Thread M Z Rahman



Hi Guys,

I was trying to run an external perl script to do some customised logging
depending on the Acct-Status-Type in the users file:


DEFAULT Acct-Status-Type == Start
   Exec-Program-Wait = /radius/raddb/startstopacct %u %s %e %f %n %c %i
%o %d %t %r %h

DEFAULT Acct-Status-Type == Stop
   Exec-Program-Wait = /radius/raddb/startstopacct %u %s %e %f %n %c %i
%o %d %t %r %h


Now the problem is the script doesn't at all get executed. I have the mysql
module also activated for accounting log keeping. I get all the data in
mysql, but this script doesn't at all get executed. Now, my question is does
free-radius read the execparams file for the argument vectors for the
external file to be run? is this the reason why freeradius is not running
this script?

If anyone can tell me, whether it is at all possible to run an external
script on accounting start and stop then i would be grateful.

Thanks in advance.

Zia




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Are 2 different auth types allowed

2002-03-10 Thread Dan Perik


Hello,

I'm trying to set FreeRadius up to try 2 different type of
authentication.  I have used the LDAP functionality for well over 1/2
year now.  And by the way it's great.  It just works!  Now, I'd like to
extend that and allow FreeRadius to also try SQL auth.  So it would try
LDAP first, and if the user isn't found (or even on a bad password), I
would like FreeRadius to then try to auth against sql.  Is this
possible, and if so how?  I've tried the following, but it would fail
with Access-Reject on a user who is in LDAP, but not in sql

DEFAULT Auth-Type := LDAP
Fall-Through = 1

DEFAULT Auth-Type += sql
Fall-Through = 1

Thanks,
Dan


-- 
- Dan Perik
Computer Services Department
Lapilo Center
New Tribes Mission - PNG



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html