diff options
author | Jeremy Allison <jra@samba.org> | 1998-03-19 20:06:47 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-03-19 20:06:47 +0000 |
commit | 20770b6f1c25288e90d3e0d215afa7f0809ce124 (patch) | |
tree | ff60815a291db1bf9e95ff4cba0c3c2ffa2f8b70 /source/passdb | |
parent | e02e3bcbbd4333113dde7bef47763fb229148007 (diff) | |
download | samba-20770b6f1c25288e90d3e0d215afa7f0809ce124.tar.gz samba-20770b6f1c25288e90d3e0d215afa7f0809ce124.tar.xz samba-20770b6f1c25288e90d3e0d215afa7f0809ce124.zip |
Adding the same changes to HEAD as were added to BRANCH_1_9_18.
Changed smbpasswd to be client-server for a normal user, rather
than accessing the private/smbpasswd file directly (it still accesses
this file directly when run as root, so root can add users/change a
users password without knowing the old password).
A shakeout of this change is that smbpasswd can now be used to
change a users password on a remote NT machine (yep - you heard
that one right - we can now change a NT password from UNIX !!!!!).
Jeremy.
Diffstat (limited to 'source/passdb')
-rw-r--r-- | source/passdb/smbpass.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c index b51f6753065..a1913c4959e 100644 --- a/source/passdb/smbpass.c +++ b/source/passdb/smbpass.c @@ -768,12 +768,6 @@ BOOL mod_smbpwd_entry(struct smb_passwd* pwd) return False; } - if (!strncasecmp((char *) p, "NO PASSWORD", 11)) { - fclose(fp); - pw_file_unlock(lockfd); - return False; - } - /* Now check if the NT compatible password is available. */ p += 33; /* Move to the first character of the line after |