[Samba] NT Samba 3.0 Migration -- Machine Accout Disable

Robert H.B. Netzer samba-post at bolabs.com
Thu May 27 20:53:46 GMT 2004


I had the same problem, and found that there was a bug fix between
3.0.2 and 3.0.2a that corrected this.  All you need to do is to re-build
pdbedit with the 3.0.2a fix for pdb_interface.c and you should be able
to remove the disabled flag.  If you are running Samba
3.0.2, here is the diff which you need for that file:

[~/samba-3.0.2/source/passdb]$ diff -Nur pdb_interface.c*
--- pdb_interface.c     2004-05-17 18:59:32.000000000 -0400
+++ pdb_interface.c~    2004-02-06 17:40:31.000000000 -0500
@@ -244,7 +244,7 @@
           been allowed by the  ACB_PWNOTREQ bit */
 
        lm_pw = pdb_get_lanman_passwd( sam_acct );
-       nt_pw = pdb_get_nt_passwd( sam_acct );
+       nt_pw = pdb_get_lanman_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 @@
           been allowed by the  ACB_PWNOTREQ bit */
 
        lm_pw = pdb_get_lanman_passwd( sam_acct );
-       nt_pw = pdb_get_nt_passwd( sam_acct );
+       nt_pw = pdb_get_lanman_passwd( sam_acct );
        acb_flags = pdb_get_acct_ctrl( sam_acct );
        if ( !lm_pw && !nt_pw && !(acb_flags&ACB_PWNOTREQ) ) {
                acb_flags |= ACB_DISABLED;

>>>>>On Thu, 27 May 2004 16:07:55 -0400, "TC" <shimashi at hotmail.com> said:

  TC> After migrated or vampired PDC to Samba 3.0 on Redhat AS3.0, tried to logon
  TC> to samba but got "The trust relationship between this workstation and the
  TC> primary domain failed."

  TC> I noticed all the transferred computer accounts were marked Disable however
  TC> those accounts were shown active in `net rpc samdump`.  I tried to enable it
  TC> by using `pdbedit -c="[]" -u xxxx` but failed to modify.  Could anyone
  TC> suggest how I can fix this problem?

  TC> Thanks

  TC> TC


More information about the samba mailing list