summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/Makefile.in4
-rw-r--r--source/rpcclient/cmd_samr.c5
-rw-r--r--source/rpcclient/net.c1
3 files changed, 8 insertions, 2 deletions
diff --git a/source/Makefile.in b/source/Makefile.in
index dd2708df812..a652493ac5e 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -111,7 +111,7 @@ SPROGS = bin/smbd bin/lsarpcd bin/svcctld bin/spoolssd bin/samrd \
bin/nmbd bin/swat
PROGS1 = bin/smbclient bin/testparm bin/testprns bin/smbrun bin/smbstatus
PROGS2 = bin/rpcclient bin/smbpasswd bin/make_smbcodepage bin/debug2html
-PROGS3 = bin/regedit bin/samedit bin/svccontrol bin/cmdat bin/spoolss
+PROGS3 = bin/regedit bin/samedit bin/net bin/svccontrol bin/cmdat bin/spoolss
PROGS4 = @WRAP@ @WRAP32@
#MPROGS = @MPROGS@
PROGS = $(PROGS1) $(PROGS2) $(PROGS3) $(PROGS4) $(MPROGS) bin/nmblookup bin/make_printerdef
@@ -519,9 +519,11 @@ CMDCLIENT_LIBS = $(SAMBA_LIBS) $(UBIQXLIB)
NETCLIENT_OBJ = lib/cmd_interp.o \
rpcclient/net.o \
rpcclient/net_cmds.o \
+ rpcclient/dfs_cmds.o \
rpcclient/display_srv.o \
rpcclient/cmd_wkssvc.o \
rpcclient/cmd_brs.o \
+ rpcclient/cmd_dfs.o \
rpcclient/cmd_srvsvc.o \
$(SIDDB_OBJ) \
$(STUB_UID_OBJ)
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c
index 9d31b21306a..f79a092aecf 100644
--- a/source/rpcclient/cmd_samr.c
+++ b/source/rpcclient/cmd_samr.c
@@ -148,6 +148,7 @@ void cmd_sam_ntchange_pwd(struct client_info *info, int argc, char *argv[])
uchar nt_oldhash[16];
uchar lm_oldhash[16];
fstring acct_name;
+ fstring domain;
fstrcpy(srv_name, "\\\\");
fstrcat(srv_name, info->dest_host);
@@ -155,6 +156,8 @@ void cmd_sam_ntchange_pwd(struct client_info *info, int argc, char *argv[])
report(out_hnd, "SAM NT Password Change\n");
+ safe_strcpy(domain, usr_creds->ntc.domain, sizeof(domain));
+
if (argc >= 2)
{
struct pwd_info old_pwd;
@@ -182,7 +185,7 @@ void cmd_sam_ntchange_pwd(struct client_info *info, int argc, char *argv[])
}
/* establish a connection. */
- if (msrpc_sam_ntchange_pwd(srv_name, NULL, acct_name,
+ if (msrpc_sam_ntchange_pwd(srv_name, domain, acct_name,
lm_oldhash, nt_oldhash, new_passwd))
{
report(out_hnd, "NT Password changed OK\n");
diff --git a/source/rpcclient/net.c b/source/rpcclient/net.c
index b70452cc074..0008fff6b60 100644
--- a/source/rpcclient/net.c
+++ b/source/rpcclient/net.c
@@ -30,6 +30,7 @@
int main(int argc, char *argv[])
{
add_net_commands();
+ add_dfs_commands();
return command_main(argc, argv);
}