summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 16:07:06 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-23 16:14:19 +1100
commit1c7725ae8a4ed3270720ce71de08f4949aa83ea7 (patch)
tree68d3d861f5d70120c21c6048c4a3d241ac0d275b /source3/utils
parent7724533d8065a2cd78573e6a07fcad9879296c71 (diff)
downloadsamba-1c7725ae8a4ed3270720ce71de08f4949aa83ea7.tar.gz
samba-1c7725ae8a4ed3270720ce71de08f4949aa83ea7.tar.bz2
samba-1c7725ae8a4ed3270720ce71de08f4949aa83ea7.zip
s3-utils: Remove unused connect_to_ipc_krb5()
Found by callcatcher. Andrew Bartlett
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_proto.h4
-rw-r--r--source3/utils/net_util.c53
2 files changed, 0 insertions, 57 deletions
diff --git a/source3/utils/net_proto.h b/source3/utils/net_proto.h
index 83633aa7fc..3f99e14e6e 100644
--- a/source3/utils/net_proto.h
+++ b/source3/utils/net_proto.h
@@ -414,10 +414,6 @@ NTSTATUS connect_to_ipc_anonymous(struct net_context *c,
struct cli_state **cli_ctx,
const struct sockaddr_storage *server_ss,
const char *server_name);
-NTSTATUS connect_to_ipc_krb5(struct net_context *c,
- struct cli_state **cli_ctx,
- const struct sockaddr_storage *server_ss,
- const char *server_name);
NTSTATUS connect_dst_pipe(struct net_context *c, struct cli_state **cli_dst,
struct rpc_pipe_client **pp_pipe_hnd,
const struct ndr_syntax_id *interface);
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c
index a6edc3976d..d0f2dd7241 100644
--- a/source3/utils/net_util.c
+++ b/source3/utils/net_util.c
@@ -241,59 +241,6 @@ static char *get_user_and_realm(const char *username)
return user_and_realm;
}
-/****************************************************************************
- Connect to \\server\ipc$ using KRB5.
-****************************************************************************/
-
-NTSTATUS connect_to_ipc_krb5(struct net_context *c,
- struct cli_state **cli_ctx,
- const struct sockaddr_storage *server_ss,
- const char *server_name)
-{
- NTSTATUS nt_status;
- char *user_and_realm = NULL;
-
- /* FIXME: Should get existing kerberos ticket if possible. */
- c->opt_password = net_prompt_pass(c, c->opt_user_name);
- if (!c->opt_password) {
- return NT_STATUS_NO_MEMORY;
- }
-
- user_and_realm = get_user_and_realm(c->opt_user_name);
- if (!user_and_realm) {
- return NT_STATUS_NO_MEMORY;
- }
-
- nt_status = cli_full_connection(cli_ctx, NULL, server_name,
- server_ss, c->opt_port,
- "IPC$", "IPC",
- user_and_realm, c->opt_workgroup,
- c->opt_password,
- CLI_FULL_CONNECTION_USE_KERBEROS,
- SMB_SIGNING_DEFAULT);
-
- SAFE_FREE(user_and_realm);
-
- if (!NT_STATUS_IS_OK(nt_status)) {
- DEBUG(1,("Cannot connect to server using kerberos. Error was %s\n", nt_errstr(nt_status)));
- return nt_status;
- }
-
- if (c->smb_encrypt) {
- nt_status = cli_cm_force_encryption(*cli_ctx,
- user_and_realm,
- c->opt_password,
- c->opt_workgroup,
- "IPC$");
- if (!NT_STATUS_IS_OK(nt_status)) {
- cli_shutdown(*cli_ctx);
- *cli_ctx = NULL;
- }
- }
-
- return nt_status;
-}
-
/**
* Connect a server and open a given pipe
*