diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-31 14:02:28 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-31 08:06:17 +0200 |
commit | d2c0387d66038fb474daa1507923c2138a6e584f (patch) | |
tree | b418022619bdd5f35abd049dc2f424ab9cbb4edc | |
parent | efec5a9299455bd53cc770f2bc364f9a6f4f8def (diff) | |
download | samba-d2c0387d66038fb474daa1507923c2138a6e584f.tar.gz samba-d2c0387d66038fb474daa1507923c2138a6e584f.tar.bz2 samba-d2c0387d66038fb474daa1507923c2138a6e584f.zip |
s4-kdc: Give information on how long the password history is
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 31 08:06:17 CEST 2012 on sn-devel-104
-rw-r--r-- | source4/kdc/kpasswdd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c index 8bed20e518..c05ea82318 100644 --- a/source4/kdc/kpasswdd.c +++ b/source4/kdc/kpasswdd.c @@ -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", |