diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-05 21:14:41 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-05 21:14:41 -0400 |
| commit | 3f1ad211d9499f5c36e9cc90c888c6e0da50ab3c (patch) | |
| tree | c01df999752b89a3c272c4c0e6acff52b2977ef6 /passlib/apps.py | |
| parent | a2809fd98ed58eb006d204b05cc1519bdf1b12de (diff) | |
| download | passlib-3f1ad211d9499f5c36e9cc90c888c6e0da50ab3c.tar.gz | |
passlib.hash: added ldap_salted_sha256 & ldap_salted_512 (issue 124)
Diffstat (limited to 'passlib/apps.py')
| -rw-r--r-- | passlib/apps.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/passlib/apps.py b/passlib/apps.py index 7c4be06..30cd6af 100644 --- a/passlib/apps.py +++ b/passlib/apps.py @@ -124,9 +124,17 @@ django_context = django110_context #============================================================================= # ldap #============================================================================= -std_ldap_schemes = ["ldap_salted_sha1", "ldap_salted_md5", - "ldap_sha1", "ldap_md5", - "ldap_plaintext" ] + +#: standard ldap schemes +std_ldap_schemes = [ + "ldap_salted_sha512", + "ldap_salted_sha256", + "ldap_salted_sha1", + "ldap_salted_md5", + "ldap_sha1", + "ldap_md5", + "ldap_plaintext", +] # create context with all std ldap schemes EXCEPT crypt ldap_nocrypt_context = LazyCryptContext(std_ldap_schemes) |
