(RADIATOR) variable question (realm)

Hugh Irvine hugh at open.com.au
Fri Jul 13 03:56:43 CDT 2001


Hi Andy -

Ahhh - correct.

You will have to use a PreAuthHook, in which you can include the rewrite that 
you show below, as well as add a pseudo-attribute for the Realm.

Something like this:

	my $realm = .....;
	$p->add_attr('User-Realm', $realm);

Then in your AuthLog you can use %{User-Realm} instead of $R.

hth

Hugh


On Friday 13 July 2001 18:23, Andy De Petter wrote:
> Maybe my question wasn't very well understood ;)))
>
> My users authenticate with "username" and not with "username at realm".  I'm
> forcing their realm, based on the access server they were using..
>
> But my question was: how can I log the realm where they've been pushed
> into, even though they didn't provide a realm themselves?
>
> that's probably why the realm is empty in my log, because it will only the
> realm that the user provided?
>
> cheers,
>
> -a
>
> > -----Original Message-----
> > From: owner-radiator at open.com.au [mailto:owner-radiator at open.com.au]On
> > Behalf Of Andy De Petter
> > Sent: vrijdag 13 juli 2001 9:49
> > To: Radiator Mailing
> > Subject: RE: (RADIATOR) variable question (realm)
> >
> >
> >
> > Odd..
> >
> > I'm using:
> >
> >         SuccessFormat   %l:%n:%P:%a:PASS:%N:%c:%R
> >         FailureFormat   %l:%n:%P:none:FAIL:%N:%c:%R
> >
> > And, while it's logging, the last parameter remains empty :(
> >
> > I'm using this as RewriteFunction:
> >
> > RewriteFunction sub { my($a) = shift; $a =~ tr/A-Z/a-z/; $a =~
> > s/[\000]//g;
> > $a =~ s/^([^@]+).*/$1/; $a =~ s/[^A-Za-z0-9\.\-_\@]//g; $a; }
> >
> > Any ideas?
> >
> > -Andy
> >
> > > -----Original Message-----
> > > From: Hugh Irvine [mailto:hugh at open.com.au]
> > > Sent: vrijdag 13 juli 2001 9:23
> > > To: Andy De Petter; Radiator Mailing
> > > Subject: Re: (RADIATOR) variable question (realm)
> > >
> > >
> > >
> > > Hello Andy -
> > >
> > > Sure - %R (section 6.2 in the manual).
> > >
> > > cheers
> > >
> > > Hugh
> > >
> > > On Friday 13 July 2001 17:10, Andy De Petter wrote:
> > > > Hello guys,
> > > >
> > > > Is there a variable that can be used, to log the realm, that
> > >
> > > the user went
> > >
> > > > through, in an AuthLog SuccessFormat ?
> > > >
> > > > Thanks,
> > > >
> > > > -Andy
> > > >
> > > > --
> > > > *** DISCLAIMER ***
> > > > This e-mail and any attachments thereto may contain information,
> > > > which is confidential and/or protected by intellectual property
> > > > rights and are intended for the sole use of the recipient(s) named
> > > > above. Any use of the information contained herein (including, but
> > > > not limited to, total or partial reproduction, communication or
> > > > distribution in any form) by persons other than the designated
> > > > recipient(s) is prohibited. If you have received this e-mail in
> > > > error, please notify the sender either by telephone or by e-mail and
> > > > delete the material from any computer. Thank you for your
> > > > cooperation.
> > > >
> > > > ===
> > > > Archive at http://www.open.com.au/archives/radiator/
> > > > Announcements on radiator-announce at open.com.au
> > > > To unsubscribe, email 'majordomo at open.com.au' with
> > > > 'unsubscribe radiator' in the body of the message.
> > >
> > > --
> > > Radiator: the most portable, flexible and configurable RADIUS server
> > > anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
> > > -
> > > Nets: internetwork inventory and management - graphical, extensible,
> > > flexible with hardware, software, platform and database independence.
> >
> > ===
> > Archive at http://www.open.com.au/archives/radiator/
> > Announcements on radiator-announce at open.com.au
> > To unsubscribe, email 'majordomo at open.com.au' with
> > 'unsubscribe radiator' in the body of the message.
>
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list