summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@redhat.com>2011-12-07 17:52:10 +0100
committerTomas Mraz <tmraz@redhat.com>2011-12-07 17:52:10 +0100
commit70c3dc72f91b426d62e1fc3db03d98f0f7a9b5ab (patch)
tree1d8cc6c3d2e301159a3457d7f371b524d4985915 /python
parentade0129f9ff4d683e47c3b6f974c33787fd7ebef (diff)
downloadlibpwquality-70c3dc72f91b426d62e1fc3db03d98f0f7a9b5ab.tar.gz
Support the new settings in the Python binding.
Diffstat (limited to 'python')
-rw-r--r--python/pwquality.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/pwquality.c b/python/pwquality.c
index be510d8..8a2e342 100644
--- a/python/pwquality.c
+++ b/python/pwquality.c
@@ -102,6 +102,21 @@ static PyGetSetDef pwqsettings_getseters[] = {
"Maximum repeated consecutive characters",
(void *)PWQ_SETTING_MAX_REPEAT
},
+ { "maxclassrepeat",
+ (getter)pwqsettings_getint, (setter)pwqsettings_setint,
+ "Maximum repeated consecutive characters",
+ (void *)PWQ_SETTING_MAX_CLASS_REPEAT
+ },
+ { "gecoscheck",
+ (getter)pwqsettings_getint, (setter)pwqsettings_setint,
+ "Maximum repeated consecutive characters",
+ (void *)PWQ_SETTING_GECOS_CHECK
+ },
+ { "badwords",
+ (getter)pwqsettings_getstr, (setter)pwqsettings_setstr,
+ "Path to the cracklib dictionary",
+ (void *)PWQ_SETTING_BAD_WORDS
+ },
{ "dictpath",
(getter)pwqsettings_getstr, (setter)pwqsettings_setstr,
"Path to the cracklib dictionary",