From: Bob Campbell Date: Mon, 27 Jun 2016 22:34:04 +0000 (+1200) Subject: password_hash: Make an error message clearer X-Git-Tag: tdb-1.3.10~520 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=965361aa929ab6798e03e71d3800027a32896c7d;p=thirdparty%2Fsamba.git password_hash: Make an error message clearer Signed-off-by: Bob Campbell Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett Autobuild-User(master): Garming Sam Autobuild-Date(master): Tue Jul 5 03:47:52 CEST 2016 on sn-devel-144 --- diff --git a/source4/dsdb/samdb/ldb_modules/password_hash.c b/source4/dsdb/samdb/ldb_modules/password_hash.c index 9606a60a5d7..c50a778f3f3 100644 --- a/source4/dsdb/samdb/ldb_modules/password_hash.c +++ b/source4/dsdb/samdb/ldb_modules/password_hash.c @@ -2210,7 +2210,7 @@ static int check_password_restrictions(struct setup_password_fields_io *io) ret = LDB_ERR_CONSTRAINT_VIOLATION; ldb_asprintf_errstring(ldb, "%08X: %s - check_password_restrictions: " - "the password doesn't fit by a certain reason!", + "the password doesn't fit due to a miscellaneous restriction!", W_ERROR_V(WERR_PASSWORD_RESTRICTION), ldb_strerror(ret)); return ret;