diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-20 14:34:18 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-20 23:49:04 +0200 |
commit | e0b2f6bd267e19986d31275ff3bf88600eaaeaf3 (patch) | |
tree | 334cd0913763c10b68c1a36ff83b84b228b812ea /source3 | |
parent | 9f14d10366e291ef635c80f55c095b5c34b6dd73 (diff) | |
download | samba-e0b2f6bd267e19986d31275ff3bf88600eaaeaf3.tar.gz samba-e0b2f6bd267e19986d31275ff3bf88600eaaeaf3.tar.bz2 samba-e0b2f6bd267e19986d31275ff3bf88600eaaeaf3.zip |
The "workgroup" parameter is not used at all in cli_session_setup_kerberos(). Remove it.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliconnect.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 374dd97ff4..fca6c3a312 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -1412,7 +1412,7 @@ static void cli_session_setup_kerberos_done(struct tevent_req *subreq); static struct tevent_req *cli_session_setup_kerberos_send( TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct cli_state *cli, - const char *principal, const char *workgroup) + const char *principal) { struct tevent_req *req, *subreq; struct cli_session_setup_kerberos_state *state; @@ -1500,8 +1500,7 @@ static ADS_STATUS cli_session_setup_kerberos_recv(struct tevent_req *req) } static ADS_STATUS cli_session_setup_kerberos(struct cli_state *cli, - const char *principal, - const char *workgroup) + const char *principal) { struct tevent_context *ev; struct tevent_req *req; @@ -1514,8 +1513,7 @@ static ADS_STATUS cli_session_setup_kerberos(struct cli_state *cli, if (ev == NULL) { goto fail; } - req = cli_session_setup_kerberos_send(ev, ev, cli, principal, - workgroup); + req = cli_session_setup_kerberos_send(ev, ev, cli, principal); if (req == NULL) { goto fail; } @@ -1901,8 +1899,7 @@ ADS_STATUS cli_session_setup_spnego(struct cli_state *cli, const char *user, } if (principal) { - rc = cli_session_setup_kerberos(cli, principal, - dest_realm); + rc = cli_session_setup_kerberos(cli, principal); if (ADS_ERR_OK(rc) || !cli->fallback_after_kerberos) { TALLOC_FREE(principal); return rc; |