ldapcherry-ppolicy-cracklib
Cracklib password policy plugin for LdapCherry
- Doc:
- Dev:
- PyPI:
- License:
MIT
- Author:
Pierre-Francois Carpentier - copyright © 2015
Install
From pypi:
pip install lcppolicy_cracklib
From sources:
$ python setup.py install
Configure
Enable module
To enable this module, set ppolicy.module to lcppolicy_cracklib in section [ppolicy] of ldapcherry.ini
Parameters
This plugin takes the following parameters in ldapcherry.ini (all the parameters are optional):
Parameter |
Section |
Description |
Values |
Comment |
|---|---|---|---|---|
min_length |
ppolicy |
Minimum length of password |
integer |
Default: 0 |
min_upper |
ppolicy |
Minimum number of upper case characters |
Integer |
Default: 0 |
min_digit |
ppolicy |
Minimum number of digit characters |
Integer |
Default: 0 |
min_lower |
ppolicy |
Minimum number of lower case characters |
Integer |
Default: 0 |
min_other |
ppolicy |
Minimum number of non alphanumeric characters |
Integer |
Default: 0 |
dict_path |
ppolicy |
Path to dictionary |
Path |
Default: default cracklib dictionary usually ‘/var/cache/cracklib/cracklib_dict’. If pointing, for example, to /path/dict, then /path/dict.hwm, /path/dict.pwd and /path/dict.pwi must exist. |
Example
[ppolicy]
# password policy module
ppolicy.module = 'lcppolicy_cracklib'
# minimum password length (optional default: 0)
min_length = 10
# minimum number of upper case characters (optional default: 0)
min_upper = 1
# minimum number of lower case characters (optional default: 0)
min_lower = 2
# minimum number of digits (optional default: 0)
min_digit = 1
# minimum number of non alphanumeric characters (optional default: 0)
min_other = 1
# path to dictionary (optional)
dict_path = '/var/cache/cracklib/cracklib_dict'
Custom dictionary
To build custom cracklib dictionaries:
Get one or many word list files (for example here: http://www.winedt.org/Dict/).
If necessary, encode it to UTF-8.
Generate the cracklib dictionary.
example:
# Just create a work directory
$ mkdir dict/
$ cd dict/
# Recover and unzip the word list
$ wget http://www.winedt.org/Dict/unicode/fr.zip
$ unzip fr.zip
# UTF-8 encoding
$ file *
fr.dic: Little-endian UTF-16 Unicode text
fr.txt: ASCII text, with CRLF line terminators
fr.zip: Zip archive data, at least v2.0 to extract
$ iconv -f UTF-16 -t UTF-8 fr.dic >fr2.dic
# Create the dictionary
$ cat fr2.dic | cracklib-packer mydict
# Result
$ ls mydict*
mydict.hwm mydict.pwd mydict.pwi
Metadata
Release files for lcppolicy_cracklib 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lcppolicy_cracklib-0.1.0.tar.gz | 189.4 kB | Without provenance | Details |
Release files / lcppolicy_cracklib-0.1.0.tar.gz
| Download URL | lcppolicy_cracklib-0.1.0.tar.gz |
|---|---|
| Size | 189.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3b34d363ca1eaca0da323f90ddda0094e022965e73c4c02be98dedef1d91290
|
|
BLAKE2b-256 checksum How to use checksums |
c469daa4ab148a6758493bdf5439b93daea39210c014649fc0fd07611fb9fa01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lcppolicy_cracklib 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.