lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1154 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1154 - nss-pam-ldapd/nslcd



Author: arthur
Date: Sat Jun 19 21:55:40 2010
New Revision: 1154
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1154

Log:
add logging to SASL interaction function

Modified:
   nss-pam-ldapd/nslcd/myldap.c

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Sat Jun 19 21:42:43 2010        (r1153)
+++ nss-pam-ldapd/nslcd/myldap.c        Sat Jun 19 21:55:40 2010        (r1154)
@@ -316,30 +316,42 @@
       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 */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits