* the lanman hash alone and we've deactivated that mechanism. This
* would end in an account without any password! */
if ((!io->n.cleartext_utf8) && (!io->n.cleartext_utf16)
- && (!io->n.nt_hash) && (!io->n.lm_hash)) {
+ && (!io->n.nt_hash) && (!io->n.lm_hash) && (lm_hash)) {
ldb_asprintf_errstring(ldb,
"setup_io: "
- "It' not possible to delete the password (changes using the LAN Manager hash alone could be deactivated)!");
+ "It's not possible to delete the password (changes using the LAN Manager hash alone could be deactivated)!");
/* on "userPassword" and "clearTextPassword" we've to return
* something different, since these are virtual attributes */
if ((ldb_msg_find_element(orig_msg, "userPassword") != NULL) ||