Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-2343: pam_winbind core dumps with "expiring passwords"

Centrify DirectControl ,   Centrify DirectControl Plugins ,  

12 April,16 at 11:09 AM

Applies to: All versions of Centrify DirectControl-enabled Samba.
Using a small wrapper program in C, it is noticed (or will core dump/segfault under the following circumstances:
1) When the user's account password is about to expire, but has not actually expired. It's in the period where the warnings are issued.
2) The host is a RHEL 6.2 server, which is joined to a Windows AD, and is a domain member.
3) The password expiry timeout is coming from the Microsoft AD Group policies.
4) When using to perform the authentication and also filtering using the "require_membership_of" to filter to specific AD groups, for services on the host.  
5) If the user's password is changed, the problem instantly goes away, but it re-appears when the account password is going to expire again. 
Below is the gdb output from running the test program, with the PAM service file (see below)
Program received signal SIGSEGV, Segmentation fault.
0x0013d521 in pam_sm_authenticate () from /lib/security/
(gdb) bt
#0  0x0013d521 in pam_sm_authenticate () from /lib/security/
#1  0x00ba543f in ?? () from /lib/
#2  0x00ba4c22 in pam_authenticate () from /lib/
#3  0x08048770 in main (argc=3, argv=0xbffff0d4) at main.c:44
Service file/etc/pam.d/test contains:
auth        required debug
auth        sufficient nullok try_first_pass debug
auth        requisite uid >= 500 quiet debug
auth        sufficient use_first_pass warn_pwd_expire=0 require_membership_of=S-1-5-21-1550212391-918360395-1544898942-18827 debug
auth        required debug
Using the 'warn_pwd_expire=0'  seems to force the core dump. If this is left out, the following message appears: 
"Your password will expire in 10 days. erroneous conversation (5)"
Is there any reason?

pam_winbind is a PAM module that can authenticate users against the local domain by talking to the winbind daemon. Since Centrify is NOT in the PAM stack, it is suggested to post the same in Samba forums. And it was verified stock Samba will experience the same with above scenarios. 
Following samba's Bugzilla fixed the bug "password expiration in pam_winbind which wasn't getting handled correctly from Active Directory". 
(Link provided as a courtesy)

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.