--- pam_ldap.c.orig 2005-11-03 17:10:32 +0200 +++ pam_ldap.c 2005-11-03 17:11:50 +0200 @@ -2296,6 +2296,8 @@ return PAM_SYSTEM_ERR; } + printf("%s\n",hostname); + #if defined(HAVE_GETHOSTBYNAME_R) #if GETHOSTBYNAME_R_ARGS == 6 if (gethostbyname_r (hostname, &hbuf, buf, sizeof buf, &h, &herr) != 0) @@ -2325,6 +2327,8 @@ } #endif + printf("%s\n",h->h_name); + if (_has_deny_value (session->info->hosts_allow, h->h_name)) return PAM_PERM_DENIED; else if (_has_value (session->info->hosts_allow, h->h_name))