- Red Hat Enterprise Linux 9
Disabling ipaNThash in Red Hat IdM
Solution verified - Updated on
Request a new translation or translation update
A translation for your language preference does not exist. Click below to request a translation for your selected language.
Environment
Issue
- ipaNThash attribute persists despite disabling through ipa config-mod
- ipaNThash contains base64 encoded null characters instead of expected hash value
- ipa config-show does not reflect removal of ipaNThash feature
- ipa passwd command does not prevent creation of ipaNThash attribute
Resolution
- When disabling the NT hash feature, the IPA password plugin does not simply leave the ipaNThash attribute empty or deleted. Instead, it populates it with a "Null" or "Zeroed" hash. As discovered:
AAAAAAAAAAAAAAAAAAAAAA== = 16 bytes of zeros (0x00)
- Convert it and review :
# echo AAAAAAAAAAAAAAAAAAAAAA== | base64 -d | od -An -tx1
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Root Cause
- Since the value is just zeros, no MD4 hashing of the user's actual password ever occurred. No weak hash of the plaintext exists.
Diagnostic Steps
- Disable ipaNThash through commands:
# ipa config-mod --ipaconfigstring="KDC:Disable Last Success"
# ipactl restart
# ipa config-show | grep -i "Password plugin"
Output: Password plugin features: KDC:Disable Last Success
- Next create a new IPA user and set a password.
# ipa user-add tuser
# ipa passwd tuser
# ldapsearch -D "cn=Directory Manager -W -b tuser,cn=users,cn=accounts,dc=example,dc=net
- The ipaNTHash attribute is still created after "ipa passwd tuser" which base64 encode value "AAAAAAAAAAAAAAAAAAAAAA==".
- This is the based64 encode value of 16 characters. See:
# echo AAAAAAAAAAAAAAAAAAAAAA== | base64 -d | od -An -tx1
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
This solution is part of Red Hat's fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.