+diff -Naur openssh-2.1.1p1/auth-pam.c openssh-2.1.1p1-p/auth-pam.c
+--- openssh-2.1.1p1/auth-pam.c Wed May 31 03:20:12 2000
++++ openssh-2.1.1p1-p/auth-pam.c Mon Jun 12 16:31:42 2000
+@@ -18,6 +18,8 @@
+ #define NEW_AUTHTOK_MSG \
+ "Warning: You password has expired, please change it now"
+
++extern char *forced_command;
++
+ /* Callbacks */
+ static int pamconv(int num_msg, const struct pam_message **msg,
+ struct pam_response **resp, void *appdata_ptr);
+@@ -123,6 +125,9 @@
+ debug("PAM Password authentication accepted for user \"%.100s\"",
+ pw->pw_name);
+ return 1;
++ } else if (pam_retval == PAM_NEW_AUTHTOK_REQD) {
++ debug("PAM (expired)Password authentication accepted for user \"%.100s\"", pw->pw_name);
++ return 1;
+ } else {
+ debug("PAM Password authentication for \"%.100s\" failed: %s",
+ pw->pw_name, PAM_STRERROR((pam_handle_t *)pamh, pam_retval));
+@@ -159,6 +164,9 @@
+ break;
+ case PAM_NEW_AUTHTOK_REQD:
+ pam_msg_cat(NEW_AUTHTOK_MSG);
++ forced_command = xmalloc(strlen("/usr/bin/passwd") + 1);
++ strcpy(forced_command, "/usr/bin/passwd");
++/* pam_retval = pam_chauthtok((pam_handle_t *)pamh, PAM_CHANGE_EXPIRED_AUTHTOK); */
+ break;
+ default:
+ log("PAM rejected by account configuration: %.200s",
+@@ -184,10 +192,9 @@