Module Status

Stanislav Sedov stas at 310.ru
Wed Jun 28 19:54:49 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

На Wed, 28 Jun 2006 16:18:35 +0200
Andreas Schindler <schindler at az1.de> записано:

> Howdy...
> 
> i would like to obtain the return status of a perviously called module
> inside its successor, e.g. (pam.d/myservice):
> 
> 	auth    sufficient  pam_winbind.so  unknown_ok
> 	auth    required    pam_mymodule.so use_first_pass
> 
> Here, pam_mymodule would like to know what status pam_winbind returned
> to the PAM library. How ?
> 
> Thanks!

Actually, there is no way to obtain such information.
PAM (openpam at least) calls each module in clean enviropment,
so it doesn't know anything about other modules.

You can, however, explicitly call pam_winbind.so from you module
providing some kind of pam emulation to see it's return value.
But in that case you'll break original call flaw.

- -- 
Stanislav Sedov         MBSD labs, Inc.         <ssedov at mbsd.msk.ru>
Россия, Москва         http://mbsd.msk.ru

- --------------------------------------------------------------------
If the facts don't fit the theory, change the facts.  -- A. Einstein
- --------------------------------------------------------------------
PGP fingerprint:  F21E D6CC 5626 9609 6CE2  A385 2BF5 5993 EB26 9581
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEot6JK/VZk+smlYERAnd/AJ9pvxGqp5fc1imsJcwf7cwhaPwuEACeKg+y
usWezLz93XraYG4jND+4mWk=
=jh+j
-----END PGP SIGNATURE-----




More information about the Pam-list mailing list