diff options
author | Andreas Schneider <asn@samba.org> | 2019-03-27 16:45:39 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-04-09 09:49:52 +0000 |
commit | 0acb2e42fcb9c388583550e68b0b6c160b9d1c99 (patch) | |
tree | a5b29b636b4787ed23cfe32ce5e5ea7b7996dce6 | |
parent | be37e77bb316d72f29e99265583b00f0cfa5636f (diff) | |
download | samba-0acb2e42fcb9c388583550e68b0b6c160b9d1c99.tar.gz |
s3:libsmb: Add some useful debug output to cliconnect
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13861
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 011a47f04dabe22095a30d284662d8ca50463ee8)
-rw-r--r-- | source3/libsmb/cliconnect.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 837299d9220..9a3d3c769f9 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -345,6 +345,8 @@ NTSTATUS cli_session_creds_prepare_krb5(struct cli_state *cli, return NT_STATUS_OK; } + DBG_INFO("Doing kinit for %s to access %s\n", + user_principal, target_hostname); /* * TODO: This should be done within the gensec layer @@ -374,6 +376,11 @@ NTSTATUS cli_session_creds_prepare_krb5(struct cli_state *cli, */ } + DBG_DEBUG("Successfully authenticated as %s to access %s using " + "Kerberos\n", + user_principal, + target_hostname); + TALLOC_FREE(frame); return NT_STATUS_OK; } @@ -1293,6 +1300,10 @@ static struct tevent_req *cli_session_setup_spnego_send( return tevent_req_post(req, ev); } + DBG_INFO("Connect to %s as %s using SPNEGO\n", + target_hostname, + cli_credentials_get_principal(creds, talloc_tos())); + subreq = cli_session_setup_gensec_send(state, ev, cli, creds, target_service, target_hostname); if (tevent_req_nomem(subreq, req)) { @@ -1496,6 +1507,8 @@ struct tevent_req *cli_session_setup_creds_send(TALLOC_CTX *mem_ctx, return tevent_req_post(req, ev); } + DBG_INFO("Connect to %s as %s using NTLM\n", domain, username); + if ((sec_mode & NEGOTIATE_SECURITY_CHALLENGE_RESPONSE) == 0) { bool use_unicode = smbXcli_conn_use_unicode(cli->conn); uint8_t *bytes = NULL; |