diff options
author | Tomas Mraz <tmraz@redhat.com> | 2015-07-16 13:57:57 +0200 |
---|---|---|
committer | Tomas Mraz <tmraz@redhat.com> | 2015-07-16 13:57:57 +0200 |
commit | 81cd3fc9c56e5fa8dcc258aac8f1a84dd287b4fa (patch) | |
tree | bf54f557c72e18bf59a7ecab12ef15f39c6c1180 /python | |
parent | b0810b9b2555fcf4870420688da8878260c0261c (diff) | |
download | libpwquality-81cd3fc9c56e5fa8dcc258aac8f1a84dd287b4fa.tar.gz |
Make the cracklib check optional - on by default.
Diffstat (limited to 'python')
-rw-r--r-- | python/pwquality.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/pwquality.c b/python/pwquality.c index fdf24f8..dfe72af 100644 --- a/python/pwquality.c +++ b/python/pwquality.c @@ -126,6 +126,11 @@ static PyGetSetDef pwqsettings_getseters[] = { "Match words from the passwd GECOS field if available", (void *)PWQ_SETTING_GECOS_CHECK }, + { "dictcheck", + (getter)pwqsettings_getint, (setter)pwqsettings_setint, + "Perform the dictionary check", + (void *)PWQ_SETTING_DICT_CHECK + }, { "badwords", (getter)pwqsettings_getstr, (setter)pwqsettings_setstr, "List of words more than 3 characters long that are forbidden", |