s3-passdb: Use pdb_get_nt_passwd() to get nt passwd.
[idra/samba.git] / source3 / passdb / pdb_samba4.c
index ae38133e2026bb8f99bb4eeb17b7ccb32724dc78..7c9ce9e0390733fa003b56c7170173681aa426c4 100644 (file)
@@ -383,7 +383,7 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state,
                }
                if (need_update(sam, PDB_NTPASSWD)) {
                        struct ldb_val val;
-                       val.data = pdb_get_lanman_passwd(sam);
+                       val.data = pdb_get_nt_passwd(sam);
                        if (!val.data) {
                                samdb_msg_add_delete(state->ldb, msg, msg,
                                                     "unicodePwd");