Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pluggable password storage format for ldiftree back end #36

Open
cwaldbieser opened this issue Jan 27, 2015 · 3 comments
Open

pluggable password storage format for ldiftree back end #36

cwaldbieser opened this issue Jan 27, 2015 · 3 comments

Comments

@cwaldbieser
Copy link
Collaborator

The base classes for LDAP DIT entries found in :file:ldaptor/entry.py are hard-coded to store password hashes for simple BINDs in salted SHA1 format. The entry is prefixed with "{SSHA}". This is similar to one of the schemes that OpenLDAP uses, but allowing alternate schemes may be a good idea.

If the entry has no prefix, it can indicate the password itself is stored in plain text. This is useful to developing and debugging. Different hash formats could have different prefixes. For example {SHA} for unsalted SHA or maybe {PBKDF2} for Password-Based Key Derivation Function 2.

There would need to be a default storage format that is configurable. That would indicate the format used when the LDAP modify password extended request is used.

Also, it may be nice to allow configuration of the attribute in which the password/hash is stored. OpenLDAP allows this, but defaults to userPassword.

@schlenk
Copy link

schlenk commented Feb 2, 2016

Sounds like one would typically use passlib for such a task. https://bitbucket.org/ecollins/passlib/wiki/Home

@psi29a
Copy link
Contributor

psi29a commented Feb 3, 2016

Nice find! :)

@peppelinux
Copy link

For SHA e SSHA:
https://github.com/peppelinux/pySSHA-slapd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants