summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2003-08-15 01:36:35 +0000
committerHerb Lewis <herb@samba.org>2003-08-15 01:36:35 +0000
commitcc865e1edc57052877ae542058d62dfd16152369 (patch)
treea794cf7fbb63ece6cc2cacb48c9e97bb24a8590d
parentfc05b0f4c73a44133074cf14afcfd0dee974c7ef (diff)
downloadsamba-cc865e1edc57052877ae542058d62dfd16152369.tar.gz
samba-cc865e1edc57052877ae542058d62dfd16152369.tar.bz2
samba-cc865e1edc57052877ae542058d62dfd16152369.zip
get rid of unused call
(This used to be commit 244c61b1dd52121109e6fd7c3514d1a73d1fa303)
-rw-r--r--source3/smbd/chgpasswd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 6bc8626d81..3ed94ef740 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -746,7 +746,6 @@ NTSTATUS pass_oem_change(char *user,
uchar * ntdata, uchar * nthash)
{
fstring new_passwd;
- const char *unix_user;
SAM_ACCOUNT *sampass = NULL;
NTSTATUS nt_status = check_oem_password(user, lmdata, lmhash, ntdata, nthash,
&sampass, new_passwd, sizeof(new_passwd));
@@ -754,17 +753,6 @@ NTSTATUS pass_oem_change(char *user,
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
- /*
- * At this point we have the new case-sensitive plaintext
- * password in the fstring new_passwd. If we wanted to synchronise
- * with UNIX passwords we would call a UNIX password changing
- * function here. However it would have to be done as root
- * as the plaintext of the old users password is not
- * available. JRA.
- */
-
- unix_user = pdb_get_username(sampass);
-
/* We've already checked the old password here.... */
become_root();
nt_status = change_oem_password(sampass, NULL, new_passwd);