diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-06-19 19:55:40 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-06-19 19:55:40 +0000 |
commit | 76cd57be7fef9906147d422bb1958858dbc9616c (patch) | |
tree | 7878dea01e17c8788473aff3e77db2739feb97b6 | |
parent | b8a2cd6eb647ce2e69b041aab7814e0c3cb2ee13 (diff) |
add logging to SASL interaction function
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1154 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/myldap.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index e9889ac..e955dd5 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -316,30 +316,42 @@ static int do_sasl_interact(LDAP UNUSED(*ld),unsigned UNUSED(flags),void *defaul case SASL_CB_GETREALM: if (cfg->ldc_sasl_realm) { + log_log(LOG_DEBUG,"do_sasl_interact(): returning sasl_realm \"%s\"",cfg->ldc_sasl_realm); interact->result=cfg->ldc_sasl_realm; interact->len=strlen(cfg->ldc_sasl_realm); } + else + log_log(LOG_DEBUG,"do_sasl_interact(): were asked for sasl_realm but we don't have any"); break; case SASL_CB_AUTHNAME: if (cfg->ldc_sasl_authcid) { + log_log(LOG_DEBUG,"do_sasl_interact(): returning sasl_authcid \"%s\"",cfg->ldc_sasl_authcid); interact->result=cfg->ldc_sasl_authcid; interact->len=strlen(cfg->ldc_sasl_authcid); } + else + log_log(LOG_DEBUG,"do_sasl_interact(): were asked for sasl_authcid but we don't have any"); break; case SASL_CB_USER: if (cfg->ldc_sasl_authzid) { + log_log(LOG_DEBUG,"do_sasl_interact(): returning sasl_authzid \"%s\"",cfg->ldc_sasl_authzid); interact->result=cfg->ldc_sasl_authzid; interact->len=strlen(cfg->ldc_sasl_authzid); } + else + log_log(LOG_DEBUG,"do_sasl_interact(): were asked for sasl_authzid but we don't have any"); break; case SASL_CB_PASS: if (cfg->ldc_bindpw) { + log_log(LOG_DEBUG,"do_sasl_interact(): returning bindpw \"***\""); interact->result=cfg->ldc_bindpw; interact->len=strlen(cfg->ldc_bindpw); } + else + log_log(LOG_DEBUG,"do_sasl_interact(): were asked for bindpw but we don't have any"); break; default: /* just ignore */ |