Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / authpam.c
index 9d40e69..2f2152b 100644 (file)
--- a/authpam.c
+++ b/authpam.c
@@ -128,19 +128,20 @@ static int dopam(pam_handle_t **pamh, int *started)
                }
        }
 
-#if 0
 
 #if    HAVE_PAM_SETCRED
+       fprintf(stderr, "pam_setcred...\n");
        if (retval == PAM_SUCCESS)
        {
                retval=pam_setcred(*pamh, PAM_ESTABLISH_CRED);
                if (retval != PAM_SUCCESS)
                {
-                       DPRINTF("pam_setcred failed, result %d", retval);
+                       fprintf(stderr, "pam_setcred failed, result %d\n", retval);
                }
+       fprintf(stderr, "pam_setcred done\n");
        }
 #endif
-#endif
+
 
        if (retval == PAM_SUCCESS)
        {