New comment by cryptomilk on Samba Github repository https://github.com/samba-team/samba/pull/168#issuecomment-383096041 Comment: Could you please add a test for this? See for example: python/samba/tests/test_pam_winbind_warn_pwd_expire.sh python/samba/tests/pam_winbind_warn_pwd_expire.py and https://cwrap.org/pam_wrapper.html