Please help.
My email: e...@free.net
--EM
> I am looking for example (C code) of the generic PAM module
> which can be used with telnetd,rlogind,login.
>
Attatched are two examples, both really indended for su rather than
rlogin or telnet
but the principle is the same.
The first implements the old SunOS wheel group - witten by Casper.
The second is a little hack I use when su'ing to root so that the
xauthority
cookie is passed along - not pretty but shows a different part of PAM in
use.
I'd recommend you also look at the following Linux site, which has a lot
of PAM examples:
http://parc.power.net/morgan/Linux-PAM/modules.html
--
Darren J Moffat