Drastic impromvents to pam_winbind.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 5 Feb 2002 09:40:36 +0000 (09:40 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 5 Feb 2002 09:40:36 +0000 (09:40 +0000)
commitdc1a72f896b83bc1ad3c7bf6c12c36ace3967280
tree87168230405a009b56b06a12b79d30f34dbed29b
parent22be40b6b8c034c143ce5d804628bc12cb1cc3dd
Drastic impromvents to pam_winbind.

This adds code to do generic PAM -> NTSTATUS and NTSTATUS -> PAM error
conversions, and uses them to make the error handling in pam_winbind sane.

In particular, pam_winbind now uses PAM error codes, not silly '-1, -2 ...'
stuff, and logs the NTSTATUS error that winbind now sends over the pipe.

Added code to wbinfo to display these - makes a big difference in debugging
winbindd.

The main change here is the code to allow pam_winbind password changing to
correctly stack - This code ripped from pam_unix, and the copyright attached.
(Same as for all pam modules, including pam_winbind)

Andrew Bartlett
source/Makefile.in
source/auth/pampass.c
source/lib/pam_errors.c [new file with mode: 0644]
source/nsswitch/pam_winbind.c
source/nsswitch/pam_winbind.h
source/nsswitch/wbinfo.c
source/nsswitch/winbindd_nss.h
source/nsswitch/winbindd_pam.c