]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - pam_ldap/patches/pam_ldap-176-exop-modify.patch
Move all packages to root.
[people/amarx/ipfire-3.x.git] / pam_ldap / patches / pam_ldap-176-exop-modify.patch
CommitLineData
09a030e4
SS
1When deciding whether or not to try to use ldap_modify to change the user's
2password, skip it if we're in "pam_password exop_send_old", just as we would
3for "pam_password exop". Upstream #321.
4
5diff -up pam_ldap-176/pam_ldap.c pam_ldap-176/pam_ldap.c
6--- pam_ldap-176/pam_ldap.c 2007-10-04 10:07:32.000000000 -0400
7+++ pam_ldap-176/pam_ldap.c 2007-10-04 10:07:40.000000000 -0400
8@@ -3025,7 +3025,8 @@ _update_authtok (pam_handle_t *pamh,
9 break;
10 } /* end switch */
11
12- if (session->conf->password_type != PASSWORD_EXOP)
13+ if ((session->conf->password_type != PASSWORD_EXOP) &&
14+ (session->conf->password_type != PASSWORD_EXOP_SEND_OLD))
15 {
16 rc = ldap_modify_s (session->ld, session->info->userdn, mods);
17 if (rc != LDAP_SUCCESS)