r12900: Merge from trunk:
authorGünther Deschner <gd@samba.org>
Fri, 13 Jan 2006 11:11:23 +0000 (11:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:06:06 +0000 (11:06 -0500)
commit4cb662ffd76dbe30003c618c94ccf6ebd4afb48c
treee28021adec3c743aa3d9b07b58c05b2eb6a88ff0
parentbcce3b69f83f52deb308d8c2f5165000468bd552
r12900: Merge from trunk:

Correctly handle the case where users logon with an expired password.

In that case pam_sm_authenticate has to return PAM_SUCESS instead of
PAM_NEW_AUTHTOK_REQD or PAM_AUTHTOK_EXPIRED and pam_sm_acct_mgmt has to
take care of requesting an immediate password change. (see the Linux PAM
documentation).

Fixes Bugzilla #1524, #3205. Tested with login, sshd, kdm and gdm on
Linux.

Thanks to Scott Barker <Scott_Barker@mtechIT.com>.

Guenther
source/nsswitch/pam_winbind.c
source/nsswitch/pam_winbind.h