stupid cut-n=paste error; my fault
authorGerald Carter <jerry@samba.org>
Thu, 12 Feb 2004 17:09:01 +0000 (17:09 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 12 Feb 2004 17:09:01 +0000 (17:09 +0000)
(This used to be commit ee8f142b874a5bd365e59f68fb48ff3fec82fcda)

source3/passdb/pdb_interface.c

index 4d8c14cda73a042f5876af3d0b47851afa87c757..57f3ce7e9814ddde2b4f2d3546681fcea03ee42f 100644 (file)
@@ -244,7 +244,7 @@ static NTSTATUS context_add_sam_account(struct pdb_context *context, SAM_ACCOUNT
           been allowed by the  ACB_PWNOTREQ bit */
        
        lm_pw = pdb_get_lanman_passwd( sam_acct );
-       nt_pw = pdb_get_lanman_passwd( sam_acct );
+       nt_pw = pdb_get_nt_passwd( sam_acct );
        acb_flags = pdb_get_acct_ctrl( sam_acct );
        if ( !lm_pw && !nt_pw && !(acb_flags&ACB_PWNOTREQ) ) {
                acb_flags |= ACB_DISABLED;
@@ -279,7 +279,7 @@ static NTSTATUS context_update_sam_account(struct pdb_context *context, SAM_ACCO
           been allowed by the  ACB_PWNOTREQ bit */
        
        lm_pw = pdb_get_lanman_passwd( sam_acct );
-       nt_pw = pdb_get_lanman_passwd( sam_acct );
+       nt_pw = pdb_get_nt_passwd( sam_acct );
        acb_flags = pdb_get_acct_ctrl( sam_acct );
        if ( !lm_pw && !nt_pw && !(acb_flags&ACB_PWNOTREQ) ) {
                acb_flags |= ACB_DISABLED;