Salut Fred -

On Sat, 22 Apr 2000, Fred wrote:
> Hi all,
> 
> 
> My mailers use Radius to authenticate the users. When a mail arrive for
> a user, or when a user send a mail, I must check if the user exist in
> the user DB.
> I have a MySQL database, on which I can check without trouble if a
> username is valid or not.
> But old logins are in a UNIX passwd file (I can't migrate those account
> because te passwords are encrypted).
> 
> So I have set an AuthByPolicy ContinueWhileRejet, with SQL Authby first
> ans UNIX AuthBy then.
> It works fine on with-password authentication, but how can I test if a
> user exist (without checking his password) for old accounts, in the UNIX
> passwd file ?
> 
> is the Match parameter permit to check only the username ? Is it
> necessary to use an AuthBy EXTERNAL, lauching a perl script to find if a
> username is present or not in the UNIX passwd file ?
> 

I think the simplest thing would be to add a copy of the users from the UNIX
password file to the SQL database, and retain your AuthByPolicy and so on. This
way your mailer checks would match on the existence of the user in the SQL
database, while real authentications would fall through to the AuthBy UNIX to
actually check the password.

en esperant que le printemps se presente bien ....

Hugues


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, 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