smbpasswd & disabled acct

Jeremy Allison jallison at cthulhu.engr.sgi.com
Wed Jan 20 02:12:24 GMT 1999


Chris Wood wrote:
> 
> System: DG/UX 4.2, Samba 2.0.0
> 
> I'm getting ready to move from plain text passwords to encrypted
> passwords.  I've got "update encrypted = yes" in my smb.conf.  This is
> working great (what a wonderful feature)!  Anyway, it is updated the
> smbpasswd just fine, but it is disabling the accounts as it does it.  Is
> this expected behavior?
> 

Actually it's a bug I've just fixed for the 2.0.1 release.
Applying the following patch should fix it.

Cheers,

	Jeremy Allison,
	Samba Team.

---------------------cut here-----------------------------
Index: smbd/password.c
===================================================================
RCS file: /data/cvs/samba/source/smbd/password.c,v
retrieving revision 1.110.2.7
diff -u -r1.110.2.7 password.c
--- password.c  1998/12/23 00:01:13     1.110.2.7
+++ password.c  1999/01/20 02:11:30
@@ -322,7 +322,13 @@
                DEBUG(0,("getsmbpwnam returned NULL\n"));
                return False;
        }
- 
+
+       /*
+        * Remove the account disabled flag - we are updating the
+        * users password from a login.
+        */
+       smbpw->acct_ctrl &= ~ACB_DISABLED;
+
        /* Here, the flag is one, because we want to ignore the
            XXXXXXX'd out password */
        ret = change_oem_password( smbpw, password, True);

---------------------end cut------------------------------

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------


More information about the samba-ntdom mailing list