Bug 820278
Summary: | smbk5pwd module computes invalid NT and LM hashes | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Michael Starling <mlstarling31> | |
Component: | openldap | Assignee: | Jan Vcelak <jvcelak> | |
Status: | CLOSED ERRATA | QA Contact: | David Spurek <dspurek> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 6.2 | CC: | dspurek, ebenes, jsynacek, jwest, ksrot, mpoole, sovain2009, tsmetana | |
Target Milestone: | rc | Keywords: | Regression, ZStream | |
Target Release: | --- | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | openldap-2.4.23-27.el6 | Doc Type: | Bug Fix | |
Doc Text: |
When the smbk5pwd overlay was enabled in an OpenLDAP server, and a user changed their password, the Microsoft NT LAN Manager (NTLM) and Microsoft LAN Manager (LM) hashes were not computed correctly. This led to the sambaLMPassword and sambaNTPassword attributes being updated with incorrect values, preventing the user logging in using a Windows-based client or a Samba client.
With this update, the smbk5pwd overlay is linked against OpenSSL. As such, the NTLM and LM hashes are computed correctly, and password changes work as expected when using smbk5pwd.
|
Story Points: | --- | |
Clone Of: | ||||
: | 841560 (view as bug list) | Environment: | ||
Last Closed: | 2013-02-21 09:45:45 UTC | Type: | Bug | |
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: | 782183, 840699, 841560, 844428 |
Description
Michael Starling
2012-05-09 14:03:14 UTC
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. Are you telling me this is a known issue and is fixed in RHEL 6.3? I downloaded the source for openldap 2.4.23-20 and compiled it and the smbk5pwd module under RHEL 6.2 (64-bit); I got the same result the original poster described. When examining the source code I noticed that if neither the HAVE_OPENSSL nor the HAVE_GNUTLS flags were set, the NT and LM hashes would be created from whatever garbage was in the hbuf variable and NOT from the received password. Once I modified the smbk5pwd Makefile to define the HAVE_OPENSSL flag and recompiled, the module now generates the NT and LM hashes correctly. Hi Jan, could we have any issues with linking smbk5pwd against openssl? (In reply to comment #12) > Hi Jan, > could we have any issues with linking smbk5pwd against openssl? I do not think so. It works just fine in Fedora, and the patch can be backported very easily. Jan Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: - openldap-server with smbk5pwd overlay enabled, user performs password change - NTLM and LM hashes are not computed, uninitialized memory is used instead, sambaLMPassword and sambaNTPasswords attributes are updated with incorrect values - smbk5pwd module is now linked to OpenSSL library - NTLM and LM hashes are computed correctly from the new password being set, sambaLMPassword and sambaNTPasswords attributes are updated correctly Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,4 +1,3 @@ -- openldap-server with smbk5pwd overlay enabled, user performs password change +When the smbk5pwd overlay was enabled in an OpenLDAP server, and a user changed their password, the Microsoft NT LAN Manager (NTLM) and Microsoft LAN Manager (LM) hashes were not computed correctly. This led to the sambaLMPassword and sambaNTPassword attributes being updated with incorrect values, preventing the user logging in using a Windows-based client or a Samba client. -- NTLM and LM hashes are not computed, uninitialized memory is used instead, sambaLMPassword and sambaNTPasswords attributes are updated with incorrect values + -- smbk5pwd module is now linked to OpenSSL library +With this update, the smbk5pwd overlay is linked against OpenSSL. As such, the NTLM and LM hashes are computed correctly, and password changes work as expected when using smbk5pwd.-- NTLM and LM hashes are computed correctly from the new password being set, sambaLMPassword and sambaNTPasswords attributes are updated correctly Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-0364.html |