Commits

dgc committed 26ec7c8

add some extra logging detail at debug level

  • Participants
  • Parent commits c8dd362

Comments (0)

Files changed (1)

File pam_provision.c

 {
 	struct context *ctx;
 
+	syslog(LOG_AUTH|LOG_DEBUG, "get_context (%s) in", module ? module : "??");
+
 	ctx = malloc(sizeof(struct context));
 	memset(ctx, 0, sizeof(struct context));
 
+	syslog(LOG_AUTH|LOG_DEBUG, "uname");
 	uname(&ctx->uts);
+	syslog(LOG_AUTH|LOG_DEBUG, "pam_get_user");
 	pam_get_user(pamh, &ctx->user, NULL);
+	syslog(LOG_AUTH|LOG_DEBUG, "pam_get_item(PAM_SERVICE)");
 	pam_get_item(pamh, PAM_SERVICE, (void **)&ctx->svc);
+	syslog(LOG_AUTH|LOG_DEBUG, "pam_get_item(PAM_RHOST)");
 	pam_get_item(pamh, PAM_RHOST, (void **)&ctx->rhost);
+	syslog(LOG_AUTH|LOG_DEBUG, "strdup");
 	ctx->module = strdup(module);
 	ctx->log = LOG_AUTH;
 
 	if (ctx->rhost == NULL)
 		ctx->rhost = "(local)";
 
+	syslog(LOG_AUTH|LOG_DEBUG, "get_context (%s) out", module ? module : "??");
 	return ctx;
 }