-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add module pw-sha2 #984
Comments
Hi, |
The module can be found in this path: contrib/slapd-modules/passwd/sha2/ in the official tgz. There you can find a README with build/usage instructions. |
This migth be related to bitnami/bitnami-docker-openldap#79 |
Hi, |
We are going to transfer this issue to In order to unify the approaches followed in Bitnami containers and Bitnami charts, we are moving some issues in Please follow bitnami/containers to keep you updated about the latest bitnami images. More information here: https://blog.bitnami.com/2022/07/new-source-of-truth-bitnami-containers.html |
Hi @Chartman123 The pw-sha2 module has been added to be able to use SHA256, SHA512 password hashes. The last image of the container already includes the module. You can run this to check that the module works:
Thanks for your feedback. |
Hi @CeliaGMqrz, thanks for including this module. However, I was wondering if it's auto-loaded when the container starts, because I'm not able to authenticate a user with a sha512 password by running: I've tried to add ldif file to load the module as described by: Also tried to add ldif file with the following content:
but it shows an error while trying to apply it manually by
Any idea? |
Hi @eefahd,
You can see the module |
Thank @CeliaGMqrz, yes I found it in modules, but unfortunately, could not get it working, I tried to change the hash method in config, and also tried to authenticate users without success. The code you shared is working but it's only for password generation and it takes the module path explicitly which could be the reason why it's working. I'll try to do more experiments to see if I can get it working. |
Hi @eefahd, Thanks for your feedback. Sorry, I can't reproduce the error. I may be missing data from your configuration. Could you provide the docker-compose file with the variables you are using? You may be overwriting the module. Is this behavior only happening to you with the new user's password encrypted? |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
I have an image that has the password hashing modules baked in. It supports the following password hashing and is really easy to configure with environment variables. https://github.com/clayrisser/docker-openldap#1-password-hashing |
Name and Version
bitnami/bitnami-docker-openldap:2.6.2
What is the problem this feature will solve?
SHA256, SHA512 password hashes can't be used
We want to migrate our openldap database to the bitnami image but can't do the migration because of the missing module.
What is the feature you are proposing to solve the problem?
Include the pw-sha2 module from openldap
What alternatives have you considered?
Not using the Bitnami openldap container
The text was updated successfully, but these errors were encountered: