From a8ccde4133bf2581df9a3bde08624c87fe1cd16d Mon Sep 17 00:00:00 2001 From: Arvid Requate Date: Wed, 22 Aug 2012 10:58:38 +0200 Subject: [PATCH] make password complexity rule closer to AD default --- lib/util/genrand.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/util/genrand.c b/lib/util/genrand.c index 72208be..5fd396f 100644 --- a/lib/util/genrand.c +++ b/lib/util/genrand.c @@ -324,8 +324,7 @@ _PUBLIC_ bool check_password_quality(const char *s) s += c_size; } - return ((has_digit + has_lower + has_capital + has_special) >= 3 - || (has_high > strlen(reals)/2)); + return ((has_digit + has_lower + has_capital + has_special + has_high) >= 3); } /** -- 1.7.10.4