The Samba-Bugzilla – Attachment 7805 Details for
Bug 9105
check_password_quality does not properly handle non-ASCII characters
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Adjusted test cases for password complexity
0002-Adjusted-test-cases-for-password-complexity.patch (text/plain), 1.33 KB, created by
Arvid Requate
on 2012-08-22 09:03:37 UTC
(
hide
)
Description:
Adjusted test cases for password complexity
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2012-08-22 09:03:37 UTC
Size:
1.33 KB
patch
obsolete
>From fd90610f2297b9033c31c7d3277c7a9d1c4aaa82 Mon Sep 17 00:00:00 2001 >From: Arvid Requate <requate@univention.de> >Date: Wed, 22 Aug 2012 10:59:13 +0200 >Subject: [PATCH] Adjusted test cases for password complexity > >--- > lib/util/tests/genrand.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/lib/util/tests/genrand.c b/lib/util/tests/genrand.c >index 50d77bb..8ea8693 100644 >--- a/lib/util/tests/genrand.c >+++ b/lib/util/tests/genrand.c >@@ -40,9 +40,10 @@ static bool test_check_password_quality(struct torture_context *tctx) > torture_assert(tctx, !check_password_quality("aaaaaaaaaaaa"), "same char password"); > torture_assert(tctx, !check_password_quality("BLA"), "multiple upcases password"); > torture_assert(tctx, !check_password_quality("123"), "digits only"); >- torture_assert(tctx, !check_password_quality("matthiéu"), "not enough high symbols"); >- torture_assert(tctx, check_password_quality("abcdééà çè"), "valid"); >+ torture_assert(tctx, !check_password_quality("matthiéu"), "not enough different symbol classes"); >+ torture_assert(tctx, check_password_quality("Abç"), "valid"); > torture_assert(tctx, check_password_quality("A2e"), "valid"); >+ torture_assert(tctx, check_password_quality("a2%"), "valid"); > torture_assert(tctx, check_password_quality("BA2eLi443"), "valid"); > return true; > } >-- >1.7.10.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9105
:
7798
|
7804
|
7805
|
8530