summaryrefslogtreecommitdiff
path: root/src/providers/ldap/ldap_child.c
diff options
context:
space:
mode:
authorNick Guay <nguay@redhat.com>2012-05-30 16:32:08 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-05-31 15:46:27 -0400
commit583f24df86e433589c73a3f112b30676c412b7cd (patch)
treeb5fefdef2fce77f0053c041cf6a54356c25a78bd /src/providers/ldap/ldap_child.c
parentf1ce53a3b5656361557f80f61dfd42a371230c65 (diff)
downloadsssd-583f24df86e433589c73a3f112b30676c412b7cd.tar.gz
sssd-583f24df86e433589c73a3f112b30676c412b7cd.tar.bz2
sssd-583f24df86e433589c73a3f112b30676c412b7cd.zip
added DEBUG messages to krb5_child and ldap_child
Diffstat (limited to 'src/providers/ldap/ldap_child.c')
-rw-r--r--src/providers/ldap/ldap_child.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_child.c b/src/providers/ldap/ldap_child.c
index 02397904..13e12e93 100644
--- a/src/providers/ldap/ldap_child.c
+++ b/src/providers/ldap/ldap_child.c
@@ -111,6 +111,8 @@ static int pack_buffer(struct response *r, int result, krb5_error_code krberr,
r->size = 2 * sizeof(uint32_t) + sizeof(krb5_error_code) +
len + sizeof(time_t);
+ DEBUG(SSSDBG_TRACE_INTERNAL, ("response size: %d\n",r->size));
+
r->buf = talloc_array(r, uint8_t, r->size);
if(!r->buf) {
return ENOMEM;
@@ -190,6 +192,8 @@ static krb5_error_code ldap_child_get_tgt_sync(TALLOC_CTX *memctx,
}
}
+ DEBUG(SSSDBG_TRACE_INTERNAL, ("got realm_name: [%s]\n", realm_name));
+
if (princ_str) {
if (!strchr(princ_str, '@')) {
full_princ = talloc_asprintf(memctx, "%s@%s",
@@ -207,6 +211,8 @@ static krb5_error_code ldap_child_get_tgt_sync(TALLOC_CTX *memctx,
}
hostname[511] = '\0';
+ DEBUG(SSSDBG_TRACE_LIBS, ("got hostname: [%s]\n", hostname));
+
ret = select_principal_from_keytab(memctx, hostname, realm_name,
keytab_name, &full_princ, NULL, NULL);
if (ret) goto done;
@@ -250,6 +256,7 @@ static krb5_error_code ldap_child_get_tgt_sync(TALLOC_CTX *memctx,
krberr = KRB5KRB_ERR_GENERIC;
goto done;
}
+ DEBUG(SSSDBG_TRACE_INTERNAL, ("keytab ccname: [%s]\n"));
krberr = krb5_cc_resolve(context, ccname, &ccache);
if (krberr) {