r15311: look at the NT password (not lanman one) when determining if smbpasswd -e...
authorGerald Carter <jerry@samba.org>
Fri, 28 Apr 2006 15:37:15 +0000 (15:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:16:35 +0000 (11:16 -0500)
(This used to be commit 3522b53aecb5293747b66250279417f9edf876f1)

source3/utils/smbpasswd.c

index d66001e441b2d583d40b148e63c222b3ae3728a2..c063ad8b31512baa093ddabafabad11cfd91f96c 100644 (file)
@@ -407,7 +407,7 @@ static int process_root(int local_flags)
                                sampass = samu_new( NULL );
                                ret = pdb_getsampwnam(sampass, user_name);
                                if((ret) &&
-                                  (pdb_get_lanman_passwd(sampass) == NULL)) {
+                                  (pdb_get_nt_passwd(sampass) == NULL)) {
                                        local_flags |= LOCAL_SET_PASSWORD;
                                }
                                TALLOC_FREE(sampass);