--- Forwarded mail from [EMAIL PROTECTED]

Date: Wed, 11 Oct 2000 21:10:14 +1000 (EST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: BOUNCE [EMAIL PROTECTED]:    Non-member submission from ["Mindaugas
Riauba" <[EMAIL PROTECTED]>]

>From mikem  Wed Oct 11 21:10:10 2000
Received: by oscar.open.com.au (8.9.0/8.9.0) id VAA19283
        for [EMAIL PROTECTED]; Wed, 11 Oct 2000 21:10:09 +1000 (EST)
>Received: from axis.tdd.lt (axis.tdd.lt [193.219.211.5]) by
perki.connect.com.au with ESMTP id VAA09757
  (8.8.8/IDA-1.7 for <[EMAIL PROTECTED]>); Wed, 11 Oct 2000 21:54:39 +1100
(EST)
Received: from axis.tdd.lt (axis.tdd.lt [193.219.211.5]) by
perki.connect.com.au with ESMTP id VAA09757
  (8.8.8/IDA-1.7 for <[EMAIL PROTECTED]>); Wed, 11 Oct 2000 21:54:39 +1100
(EST)
Received: from minde (office.tdd.lt [193.219.211.65])
        by axis.tdd.lt (8.11.1/8.11.1) with SMTP id e9BAsb410521
        for <[EMAIL PROTECTED]>; Wed, 11 Oct 2000 12:54:37 +0200 (CEST)
Message-ID: <059f01c03371$af198460$0a00a8c0@minde>
From: "Mindaugas Riauba" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: rewriting User-Name
Date: Wed, 11 Oct 2000 12:54:52 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Content-Type: text/plain;
        charset="windows-1257"


  I'm trying to implement different reply items depending on
the system you're loggin to. Radius compiles hook file but
rewriting seems not to work.
  And I'd like to avoid <Handler > sections because of too
much config duplication. Or there is some more elegant solution
by moving duplicating content to common section?

  Mindaugas

Radius config:

<Realm DEFAULT>
        PreAuthHook file:"%D/preauth.pl"
.........

and preauth.pl file:

sub {
  if ( ${$_[0]}->get_attr ('Called-Station-Id') == "484999" and
       ${$_[0]}->get_attr ('User-Name') == "user" ) {
    ${$_[0]}->change_attr ('User-Name', 'user2');
  }
}





---End of forwarded mail from [EMAIL PROTECTED]

-- 
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, Active Directory etc etc 
on Unix, Win95/8, 2000, NT, MacOS 9, MacOS X
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to