Michael Jinks schrieb:
On Thu, May 06, 2010 at 05:33:18PM -0400, Dave McGuire wrote:
Hmm. I've never written a PAM module (I am OH SO NOT a fan of
PAM) so I can't comment on any potential pitfalls or anything, but
PAM is pervasive enough that I'd think there'd be some resources out
there for that, assuming you've got (or are) a good C person. If
not, I can be hired on short notice. ;)
You'd think.
I am not a good C person, but a colleague is a very good one. His
module works fine for login and ssh, but when it's in the PAM stack for
dtlogin, dtlogin segfaults. Even better, from running dtlogin under
'truss -f', it appears that our module is called and executes
successfully, returns exit code 0, and then dtlogin dies.
I've written a PAM module that calls an external script.
IIRC it was necessary to fiddle with SIGCHLD disposition to get that to
work under dtlogin. The goal is to make sure that the module can reap
the process it forked without disturbing the own child process and
SIGCHLD handling of the host process.
HTH
- Jörg Barfurth
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users