Bug 245968
| Summary: | Enhancement request: Allow alternate hashes in CRYPT password encryption type | ||
|---|---|---|---|
| Product: | [Retired] 389 | Reporter: | Persona non grata <nobody+214743> |
| Component: | Security - Password Policy | Assignee: | Rich Megginson <rmeggins> |
| Status: | CLOSED DEFERRED | QA Contact: | Ben Levenson <benl> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1.0.4 | CC: | lancez, nhosoi |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-11-19 22:35:34 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 495079, 512820, 690319 | ||
|
Description
Persona non grata
2007-06-27 18:06:08 UTC
Upstream ticket: https://fedorahosted.org/389/ticket/131 I need this feature too, to support solaris login without needing to modify any default settings.
Without this support, the {CRYPT} password is limited to a maximum of 8 characters.
Here's my workaround, (not really sure if it will break anything)
- Get the 389-ds source code.
- Edit the file crypt_pwd.c under ldap/servers/plugins/pwdstorage
- in the function crypt_pw_enc
char *cry, salt[8],md5_salt[12]="$1$";
...
...
slapi_rand_array( (void *)salt, 8);
strcat(md5_salt,salt);
cry = crypt(pwd,md5_salt);
...
Compile the 389-ds source and copy .libs/libpwdstorage-plugin.so to /usr/lib64/dirsrv/plugins/libpwdstorage-plugin.so
The password generated will be "md5-crypt", which solaris and irix should understand.
Closing this bug since we moved to the ticket system: https://fedorahosted.org/389/ticket/131 |