s4-kdc: Give information on how long the password history is
authorAndrew Bartlett <abartlet@samba.org>
Fri, 31 Aug 2012 04:02:28 +0000 (14:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 31 Aug 2012 06:06:17 +0000 (08:06 +0200)
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 31 08:06:17 CEST 2012 on sn-devel-104

source4/kdc/kpasswdd.c

index 8bed20e518149e87445c78ad4a2de927cb8bb2bf..c05ea82318b25832b56f42f6d202d38310a01457 100644 (file)
@@ -119,7 +119,8 @@ static bool kpasswd_make_pwchange_reply(struct kdc_server *kdc,
                        reject_string = "Password does not meet complexity requirements";
                        break;
                case SAM_PWD_CHANGE_PWD_IN_HISTORY:
-                       reject_string = "Password is already in password history";
+                       reject_string = talloc_asprintf(mem_ctx, "Password is already in password history, cannot match any of your %d passwords",
+                                                       dominfo->password_history_length);
                        break;
                default:
                        reject_string = talloc_asprintf(mem_ctx, "Password must be at least %d characters long, and cannot match any of your %d previous passwords",