[29582] in CVS-changelog-for-Kerberos-V5
krb5 commit: Test the minclasses policy field in LDAP
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Aug 22 11:53:31 2016
Date: Mon, 22 Aug 2016 11:53:27 -0400
From: Greg Hudson <ghudson@mit.edu>
Message-Id: <201608221553.u7MFrRqR016968@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/058a688335019709a9135f5c6377bb41f7eac5c9
commit 058a688335019709a9135f5c6377bb41f7eac5c9
Author: Sarah Day <sarahday@mit.edu>
Date: Fri Aug 19 16:06:48 2016 -0400
Test the minclasses policy field in LDAP
[ghudson@mit.edu: added reference to ticket 8193 in comment]
src/tests/t_kdb.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/tests/t_kdb.py b/src/tests/t_kdb.py
index 46a051c..5c17257 100755
--- a/src/tests/t_kdb.py
+++ b/src/tests/t_kdb.py
@@ -384,6 +384,15 @@ def test_pwhist(nhist):
for n in (1, 2, 3, 4, 5):
test_pwhist(n)
+# Regression test for #8193: test password character class requirements.
+princ = 'charclassprinc'
+pol = 'charclasspol'
+realm.run([kadminl, 'addpol', '-minclasses', '3', pol])
+realm.run([kadminl, 'addprinc', '-policy', pol, '-nokey', princ])
+realm.run([kadminl, 'cpw', '-pw', 'abcdef', princ], expected_code=1)
+realm.run([kadminl, 'cpw', '-pw', 'Abcdef', princ], expected_code=1)
+realm.run([kadminl, 'cpw', '-pw', 'Abcdef1', princ])
+
# Test principal renaming and make sure last modified is changed
def get_princ(princ):
out = realm.run([kadminl, 'getprinc', princ])
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5