LFCS · Question #351
An administrator has manually migrated local accounts to LDAP, instead of using the migration tools. When trying to authenticate as a user, an error is returned about invalid credentials. What is…
The correct answer is A. The password hash type was not included in the user's password attribute. Manually migrating local account passwords to LDAP requires including the password hash type within the user's password attribute for correct authentication.
Question
Options
- AThe password hash type was not included in the user's password attribute.
- BShadow passwords are incompatible with OpenLDAP.
- CThe original password from /etc/passwd was not included.
- DThe administrator forgot to run slappasswd to convert the hashes in /etc/shadow.
- EThe administrator forgot to run ldappasswd to convert the hashes in /etc/shadow.
How the community answered
(60 responses)- A82% (49)
- B5% (3)
- C2% (1)
- D2% (1)
- E10% (6)
Why each option
Manually migrating local account passwords to LDAP requires including the password hash type within the user's password attribute for correct authentication.
When local account password hashes are manually copied to an LDAP `userPassword` attribute, the LDAP server needs to know the hashing algorithm used (e.g., SSHA, BCRYPT). Without an explicit prefix indicating the hash type, the server cannot correctly interpret the stored hash to perform authentication verification.
Shadow passwords are a Linux system concept and are not inherently incompatible with OpenLDAP; OpenLDAP can store various hash types, including those derived from shadow.
The original plaintext password is never stored or migrated directly; only its hash is used for security.
`slappasswd` is used to generate LDAP-compatible password hashes, often with the correct type prefix, but the question states hashes were manually migrated, implying a copy, not a conversion to an LDAP-specific format.
`ldappasswd` is a client utility to change a user's LDAP password, not to convert existing `/etc/shadow` hashes for migration.
Concept tested: LDAP password hash types and manual migration
Source: https://www.openldap.org/doc/admin24/uggettingstarted.html
Topics
Community Discussion
No community discussion yet for this question.