Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.
[samba.git] / source3 / nsswitch / pam_winbind.c
index f00db39b45be19dd26af7178711e45a743826ebc..4d019072ace5a70386876f7f824039efcef6c7cb 100644 (file)
@@ -1201,6 +1201,7 @@ static int winbind_auth_request(pam_handle_t * pamh,
        request.data.auth.uid = -1;
 
        request.flags = WBFLAG_PAM_INFO3_TEXT |
+                       WBFLAG_PAM_GET_PWD_POLICY |
                        WBFLAG_PAM_CONTACT_TRUSTDOM;
 
        if (ctrl & (WINBIND_KRB5_AUTH|WINBIND_CACHED_LOGIN)) {