aboutsummaryrefslogtreecommitdiff
path: root/src/gssapi.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-05-24 15:32:20 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-13 14:59:56 +0200
commit55ddc3932ebd0584013fb63f06a600a6a7517a91 (patch)
treefcc8444a92a1fd585ff563a2d2e616cff2952694 /src/gssapi.c
parent2a0c1e917f62dd29af4a3ad8f0b9d9ee5fc73d1b (diff)
downloadlibssh-55ddc3932ebd0584013fb63f06a600a6a7517a91.tar.gz
libssh-55ddc3932ebd0584013fb63f06a600a6a7517a91.tar.xz
libssh-55ddc3932ebd0584013fb63f06a600a6a7517a91.zip
gssapi: more debug info
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/gssapi.c')
-rw-r--r--src/gssapi.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gssapi.c b/src/gssapi.c
index 6027f4c3..c8dffd34 100644
--- a/src/gssapi.c
+++ b/src/gssapi.c
@@ -511,7 +511,7 @@ static int ssh_gssapi_match(ssh_session session, char *hostname, char *username,
maj_stat = gss_indicate_mechs(&min_stat, &supported);
for (i=0; i < supported->count; ++i){
ptr=ssh_get_hexa(supported->elements[i].elements, supported->elements[i].length);
- printf("supported %d : %s\n",i, ptr);
+ ssh_log(session, SSH_LOG_DEBUG, "GSSAPI oid supported %d : %s\n",i, ptr);
SAFE_FREE(ptr);
}
@@ -520,8 +520,8 @@ static int ssh_gssapi_match(ssh_session session, char *hostname, char *username,
maj_stat = gss_import_name(&min_stat, &user_namebuf,
(gss_OID) GSS_C_NT_USER_NAME, &user_name);
if (maj_stat != GSS_S_COMPLETE) {
- ssh_log(session, 0, "importing name %d, %d", maj_stat, min_stat);
- ssh_gssapi_log_error(session, 0, "importing name", maj_stat);
+ ssh_log(session, SSH_LOG_DEBUG, "importing name %d, %d", maj_stat, min_stat);
+ ssh_gssapi_log_error(session, SSH_LOG_DEBUG, "importing name", maj_stat);
return -1;
}
@@ -608,12 +608,14 @@ int ssh_gssapi_auth_mic(ssh_session session){
ssh_log(session, 0, "acquiring credentials %d, %d", maj_stat, min_stat);
*/
+ ssh_log(session,SSH_LOG_PROTOCOL, "Authenticating with gssapi to host %s with user %s",
+ session->opts.host, session->opts.username);
rc = ssh_gssapi_match(session,session->opts.host, session->opts.username, &selected, 0);
if (rc == SSH_ERROR)
return SSH_AUTH_DENIED;
n_oids = selected->count;
- ssh_log(session, 0, "Sending %d oids", n_oids);
+ ssh_log(session, SSH_LOG_PROTOCOL, "Sending %d oids", n_oids);
oids = calloc(n_oids, sizeof(ssh_string));