s3-passdb: Use pdb_get_nt_passwd() to get nt passwd.
authorAmitay Isaacs <amitay@gmail.com>
Fri, 19 Aug 2011 02:26:53 +0000 (12:26 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 19 Aug 2011 06:35:07 +0000 (16:35 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
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");