Hi,

I have 2 problems with my Radiator setup, apparently unrelated.

1) I have a Log SQL clause that looks like this:
<Log SQL>
 DBSource dbi:ODBC:everclear
 DBUsername radiator
 DBAuth  *****
 Table  error_logs
 Trace  3
</Log>

I know the DBI stuff is working okay because I use the exact same info to
log accounting, and the accounting is working fine.  I'm not seeing
anything at all in the error_logs table, although I am seeing messages
appearing in the log file (I have a <Log FILE> clause also).  Any
suggestions?

2) I have a PreClientHook line that looks like:
PreClientHook file:"./PreClientHook.pl"

The file contains: (btw, this is some code I use to fix up the Session-Id
field, some of our NAS's send them in hex and in various weird formats)

# fixes up Acct-Session-Id

sub {
 open (BLAH, ">> c:\\debug.txt");

 my $self = {};
 bless $self, Radius::AttrVal;

 my $foo = $self->get_attr('Acct-Session-Id');
 my $bar = "";
 print BLAH "pre: $foo "
  ($foo, $bar) = split(' ', $foo);
 if ($foo =~ /\w{8}/) {
  $foo = hex($foo);
  if ($foo > hex("80000000")) {
   $foo -= hex("ffffffff");
  }
 }
 $self->change_attr('Acct-Session-Id', $foo);

 print BLAH "post: $foo\n"
 close (BLAH);
}

I put the open(BLAH...) stuff in there just to see if the hook was firing
but it doesn't look like it is.

Any help on either of these issues would be appreciated.  I have this setup
identically on 2 machines and neither one is working as far as these 2
issues go.  They are both working just fine for everything else however.

Thanks-
shag
=====
Judd Bourgeois        |   CNM Network      +1 (805) 520-7170
Software Architect    |   1900 Los Angeles Avenue, 2nd Floor
[EMAIL PROTECTED]   |   Simi Valley, CA 93065
...yours is not the less noble because no drum beats before you when
you go out into your daily battlefields, and no crowds shout about your
coming when you return from your daily victory or defeat.
     --Robert Louis Stevenson



===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to