diff options
author | Luke Leighton <lkcl@samba.org> | 2000-03-17 20:39:16 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-03-17 20:39:16 +0000 |
commit | 8c39308572164d860182d315346c84b584794e0c (patch) | |
tree | d06c5e38f93188ccb766f52f1d7007c829577982 | |
parent | d617c864b74021735842ebe38ab1f09d04d85cad (diff) | |
download | samba-8c39308572164d860182d315346c84b584794e0c.tar.gz samba-8c39308572164d860182d315346c84b584794e0c.tar.xz samba-8c39308572164d860182d315346c84b584794e0c.zip |
adding net command (how did this get left out for so long)? which includes
shirish's new dfs commands.
attempting to fix ntpass command, it doesn't send the domain name and i
added code that _rejects_ non-domain-name encrypted dce/rpcs, and it
worked! i got a bind nack from samrd! wow!
-rw-r--r-- | source/Makefile.in | 4 | ||||
-rw-r--r-- | source/rpcclient/cmd_samr.c | 5 | ||||
-rw-r--r-- | source/rpcclient/net.c | 1 |
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); } |