]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pam_ldap/patches/pam_ldap-176-authenticateOnChangeExpiredAuthtok.patch
Move all packages to root.
[people/ms/ipfire-3.x.git] / pam_ldap / patches / pam_ldap-176-authenticateOnChangeExpiredAuthtok.patch
diff --git a/pam_ldap/patches/pam_ldap-176-authenticateOnChangeExpiredAuthtok.patch b/pam_ldap/patches/pam_ldap-176-authenticateOnChangeExpiredAuthtok.patch
new file mode 100644 (file)
index 0000000..009326f
--- /dev/null
@@ -0,0 +1,11 @@
+--- pam_ldap-176/pam_ldap.c    2011-01-06 07:37:12.000000000 -0800
++++ pam_ldap-176/pam_ldap.c    2011-01-06 07:38:59.000000000 -0800
+@@ -3415,7 +3415,7 @@
+       if (rc != PAM_SUCCESS)
+       return rc;
+-      if (!(session->conf->rootbinddn && getuid () == 0))
++      if (!(session->conf->rootbinddn && getuid () == 0 && !(flags & PAM_CHANGE_EXPIRED_AUTHTOK)))
+       {
+         /* we are not root, authenticate old password */
+         if (try_first_pass || use_first_pass)