[EMAIL PROTECTED] wrote:
[NB: I was pointing out how to use the *standard* Unix authentication
mechanism.]
> What about LibPAM ?
> I think it's the most progressive way for user autentification.
PAM is only appropriate on a system where PAM is the standard method
of authentication (i.e. RedHat Linux).
The main problem with using PAM is that every program which performs
user authentication has to be either designed or modified in order to
use it. This is OK if you're going to either
a) restrict yourself to packages for which someone has already added
PAM support, or
b) add PAM support yourself when necessary.
Whilst most of the more common packages have PAM-aware versions
available, you still have the problems that:
a) Whenever a new version is released, you have to wait for someone to
release a PAM-aware version (or do it yourself).
b) If you want to install some obscure package, you will probably have
to make the changes yourself.
c) If you want to use a binary-only package which expects that
crypt(passwd) == getpwnam(username)->pw_passwd
then you're stuffed.
--
Glynn Clements <[EMAIL PROTECTED]>