summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2002-08-28 10:34:28 +0000
committerVolker Lendecke <vlendec@samba.org>2002-08-28 10:34:28 +0000
commit32da080463d56d70622279e1f9224e95b37a4f01 (patch)
treec658b5dd8b46875ea5d1b8319940380f514e619c /source3/utils
parentfdf9a8d39e1ed591377e512080c7c819a1a9c856 (diff)
downloadsamba-32da080463d56d70622279e1f9224e95b37a4f01.tar.gz
samba-32da080463d56d70622279e1f9224e95b37a4f01.tar.bz2
samba-32da080463d56d70622279e1f9224e95b37a4f01.zip
'No news is good news' might sometimes be confusing, at least to me :-)
Volker (This used to be commit f76a5431f0448efbc879aee965c643e2e362632a)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rpc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index a7d2a08b38..cb5350b3ed 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -243,6 +243,7 @@ static NTSTATUS rpc_join_oldstyle_internals(const DOM_SID *domain_sid, struct cl
extern pstring global_myname;
fstring trust_passwd;
unsigned char orig_trust_passwd_hash[16];
+ NTSTATUS result;
fstrcpy(trust_passwd, global_myname);
strlower(trust_passwd);
@@ -256,7 +257,12 @@ static NTSTATUS rpc_join_oldstyle_internals(const DOM_SID *domain_sid, struct cl
E_md4hash(trust_passwd, orig_trust_passwd_hash);
- return trust_pw_change_and_store_it(cli, mem_ctx, orig_trust_passwd_hash);
+ result = trust_pw_change_and_store_it(cli, mem_ctx, orig_trust_passwd_hash);
+
+ if (NT_STATUS_IS_OK(result))
+ printf("Joined domain %s.\n",lp_workgroup());
+
+ return result;
}
/**