Hi Judd,
On May 27, 12:08pm, Racer X wrote:
> Subject: (RADIATOR) problems with Log SQL and PreClientHook
> 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?
Hmmm. Could you send us a radiator log file at trace level 4 showing what
happens when a message is logged?
>
> 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.
Do you get any error messages when Radiator starts up? If the hook cant be
parsed at startup, it wont be executed.
I can see a ; missing from the end of
print BLAH "pre: $foo "
That may explain it?
Cheers.
>
> 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.
>-- End of excerpt from Racer X
--
Mike McCauley [EMAIL PROTECTED]
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia http://www.open.com.au
Phone +61 3 9598-0985 Fax +61 3 9598-0955
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8,
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.