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 | 852820689047bba01eb42863facfde81d1432d9e (patch) | |
| tree | bf54f557c72e18bf59a7ecab12ef15f39c6c1180 /python | |
| parent | 2a41d82bec642e8965c392d904cdf103c0ffcb56 (diff) | |
| download | libpwquality-git-852820689047bba01eb42863facfde81d1432d9e.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", |
