X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fpam.c;h=6382c594db0747f5872b7042cb553713d3abd4f1;hp=e6d25bc5c1d438481cfd1c024691b69141e2f92d;hb=b681aa5b9f985247df31772282e520479ffb2ece;hpb=77870ddf2d87ddf222d87b58cb9afdf0609d49dd diff --git a/src/ngircd/pam.c b/src/ngircd/pam.c index e6d25bc5..6382c594 100644 --- a/src/ngircd/pam.c +++ b/src/ngircd/pam.c @@ -7,14 +7,17 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. - * - * PAM User Authentification */ #include "portab.h" #ifdef PAM +/** + * @file + * PAM User Authentification + */ + #include "imp.h" #include @@ -100,7 +103,7 @@ PAM_Authenticate(CLIENT *Client) { if (password) free(password); password = strdup(Client_Password(Client)); - conv.appdata_ptr = password; + conv.appdata_ptr = Client_Password(Client); /* Initialize PAM */ retval = pam_start("ngircd", Client_OrigUser(Client), &conv, &pam); @@ -111,7 +114,7 @@ PAM_Authenticate(CLIENT *Client) { pam_set_item(pam, PAM_RUSER, Client_User(Client)); pam_set_item(pam, PAM_RHOST, Client_Hostname(Client)); -#ifdef HAVE_PAM_FAIL_DELAY +#if defined(HAVE_PAM_FAIL_DELAY) && !defined(NO_PAM_FAIL_DELAY) pam_fail_delay(pam, 0); #endif