summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2012-06-29 11:01:20 +0200
committerTomas Mraz <tmraz@redhat.com>2012-06-29 11:01:20 +0200
commit6d66fc29db2f4739884f027d5942a9fe61d0a69e (patch)
tree4dafbe29f2905028dec3292c645349deba067d55 /python
parent340c850953c3a8b36cd809412e96a0c5bfd052fb (diff)
downloadlibpwquality-6d66fc29db2f4739884f027d5942a9fe61d0a69e.tar.gz
Add maxsequence check for too long monotonic character sequence.
Diffstat (limited to 'python')
-rw-r--r--python/pwquality.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/pwquality.c b/python/pwquality.c
index 68e55b6..18fd608 100644
--- a/python/pwquality.c
+++ b/python/pwquality.c
@@ -107,6 +107,11 @@ static PyGetSetDef pwqsettings_getseters[] = {
"Maximum consecutive characters of the same class",
(void *)PWQ_SETTING_MAX_CLASS_REPEAT
},
+ { "maxsequence",
+ (getter)pwqsettings_getint, (setter)pwqsettings_setint,
+ "Maximum length of a monotonic character sequence",
+ (void *)PWQ_SETTING_MAX_SEQUENCE
+ },
{ "gecoscheck",
(getter)pwqsettings_getint, (setter)pwqsettings_setint,
"Match words from the passwd GECOS field if available",