diff options
author | Günther Deschner <gd@samba.org> | 2009-02-03 20:10:05 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2013-08-05 10:30:01 +0200 |
commit | 9cfa6251600ddea0e821f2bd3fd359c28eb1b7f9 (patch) | |
tree | aa88b8dbda465d1924559f814ecca9497f267d1a /source3/utils/net_rpc_join.c | |
parent | 1242ab0cb3bf575b695b39313604af9d0a7f1b3a (diff) | |
download | samba-9cfa6251600ddea0e821f2bd3fd359c28eb1b7f9.tar.gz samba-9cfa6251600ddea0e821f2bd3fd359c28eb1b7f9.tar.bz2 samba-9cfa6251600ddea0e821f2bd3fd359c28eb1b7f9.zip |
s3-net: use libnetjoin for "net rpc testjoin".
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/utils/net_rpc_join.c')
-rw-r--r-- | source3/utils/net_rpc_join.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c index a6ef11b254..8d7baab401 100644 --- a/source3/utils/net_rpc_join.c +++ b/source3/utils/net_rpc_join.c @@ -552,32 +552,3 @@ done: return retval; } - -/** - * check that a join is OK - * - * @return A shell status integer (0 for success) - * - **/ -int net_rpc_testjoin(struct net_context *c, int argc, const char **argv) -{ - NTSTATUS nt_status; - - if (c->display_usage) { - d_printf(_("Usage\n" - "net rpc testjoin\n" - " Test if a join is OK\n")); - return 0; - } - - /* Display success or failure */ - nt_status = net_rpc_join_ok(c, c->opt_target_workgroup, NULL, NULL); - if (!NT_STATUS_IS_OK(nt_status)) { - fprintf(stderr, _("Join to domain '%s' is not valid: %s\n"), - c->opt_target_workgroup, nt_errstr(nt_status)); - return -1; - } - - printf(_("Join to '%s' is OK\n"), c->opt_target_workgroup); - return 0; -} |