On May 28,  4:28pm, Neale Banks wrote:
> Subject: Re: (RADIATOR) Password = "UNIX"?
> Hi Mike,
>
> On Wed, 26 May 1999, Mike McCauley wrote:
>
> [...]
> > Radiator will understand both Password or User-Passwrod in your users file.
You
> > should not need to do anything to make that work.
>
> OK, that solves this bit nicely.  FWIW, I couldn't find this feature
> documented anywhere.
We will fix that up mow.

>
> > > 2. Some (OK, lots) of the "strings"s are "UNIX" - meaning that the
> > > radiusd should use system routines to verify the username and supplied
> > > password against the system passwd/shadow password file.  I can't see a
> > > reference to doing this with Radiator.
> >
> > No, that particular syntax is not supported by Radiator. The equivalent in
> > Radiator is to say AuthType=System, and ensure you have an AuthBy UNIX
clause
> > that has an Identifier of System.
>
> Running the following over my users file produces a likely-looking output:
>
> ----------------------------------8<------------------------------------
> #!/usr/local/bin/perl
> #
> $filename="users";
> open(FILE, $filename);
> $\ = "\n";
> while (<FILE>)
> {
>         chomp;
>         $_ =~ s/Password = "UNIX"/Auth-Type = System/;
>         print;
> }
> ----------------------------------8<------------------------------------
>
> So I figure that including the s/// line above into AuthFILE.pm (straight
> after the chomp therein) might get me going.  Any comments?

Fair enough, but I would suggest you make the regexp a bit more liberal about
white space around the equals sign.

$_ =~ s/Password\s*=\s*"UNIX"/Auth-Type = System/;


Cheers.


-- 
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.

Reply via email to