Hello Peter,
sorry for the delay in answering: I have been travelling.

Oh, I see. No RewriteUsername does not rewrite passwords.

To do that, you are going to need to write a hook that rewrites the password.

This is ugly and a bit slow, but it will do what you want:

PreAuthHook     sub { \
        my $pw = ${$_[0]}->decode_password(${$_[0]}->{Client}->{Secret});\
        $pw =~ tr/[A-Z]/[a-z]/;\
        ${$_[0]}->{CachedAttrs}{2} = \
        ${$_[0]}->encode_password($pw, ${$_[0]}->{Client}->{Secret});}

I have CCd this to the list for general information.
Cheers.


On Mar 5,  8:46am, Peter Duffy wrote:
> Subject: Re: Radiator - lowercasing passwords?
> Hi Mike,
>
> Thanks for getting back to me.
>
> It's the passwords, not the usernames, which we're wanting to lowercase:
> I saw the RewriteUsername option in the manual, but couldn't see that it
> would do the job. Does it lowercase the password as well as the
> username?
>
> Regards,
> Peter
>
> Mike McCauley wrote:
> >
> > Hi Peter,
> > no its not a silly question and its easy in Radiator.
> >
> > You can use the RewriteUsername to rewrite every incoming username to
> > lowercase with something like this:
> >
> > RewriteUsername tr/[A-Z]/[a-z]/
> >
> > See the ref manula for more details. Rewriteusername can be applied
> > globally, for a single Realm/Handler or for a single AuthBy.
> >
> > Hope that helps.
> > Cheers.
> >
> > BTW, I am out of contact all next week. You should post any questions to
the
> > mailing list then.
> >
> >
----------------------------------------------------------------------------
> > ---------------
> > Mike McCauley                                 [EMAIL PROTECTED]
> > Open System Consultants                 +61 3 9598 0985
> >
> > Mike is travelling right now, and there may be delays
> > in our correspondence.
> > -----Original Message-----
> > From: Peter Duffy <[EMAIL PROTECTED]>
> > To: Mike McCauley <[EMAIL PROTECTED]>
> > Date: Friday, March 05, 1999 4:40 AM
> > Subject: Radiator - lowercasing passwords?
> >
> > >Hi Mike,
> > >
> > >I've had a request for all passwords sent within packets from the radius
> > >clients to Radiator to be lowercased before authentication is attempted
> > >against them. This may be a silly question, but is such a thing
> > >possible? (And, if it is possible, how trivial/nontrivial might it be to
> > >implement?)
> > >
> > >(I originally wondered about doing it using a PreClientHook subroutine,
> > >but obviously at that stage the password is still encrypted.)
> > >
> > >I'd be grateful for any advice.
> > >
> > >Regards,
> > >Peter
> > >
> > >--
> > >[EMAIL PROTECTED]
> > >Peter Duffy
> > >Unix Developer
> > >Netline (UK) Ltd.
> > >
> > >
>
> --
> [EMAIL PROTECTED]
> Peter Duffy
> Unix Developer
> Netline (UK) Ltd.
>
>-- End of excerpt from Peter Duffy



-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   Consulting and development
Phone, Fax: +61 3 9598-0985                 http://www.open.com.au

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, external, etc etc on Unix, Win95/8, NT, Rhapsody
===
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to