Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need: PAM module example

2 views
Skip to first unread message

Buba

unread,
Mar 12, 1998, 3:00:00 AM3/12/98
to

I am looking for example (C code) of the generic PAM module
which can be used with telnetd,rlogind,login.

Please help.

My email: e...@free.net

--EM

Darren Moffat

unread,
Mar 17, 1998, 3:00:00 AM3/17/98
to
Buba wrote:

> 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


su_group0.c
su_cookie.c
0 new messages