X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fpam.c;h=dd15052f008539ca4780d7d2a21dfb35b6e4cee1;hb=259c314d142abd6f9295047c116235cfdd119563;hp=6382c594db0747f5872b7042cb553713d3abd4f1;hpb=b681aa5b9f985247df31772282e520479ffb2ece;p=ngircd.git diff --git a/src/ngircd/pam.c b/src/ngircd/pam.c index 6382c594..dd15052f 100644 --- a/src/ngircd/pam.c +++ b/src/ngircd/pam.c @@ -15,10 +15,9 @@ /** * @file - * PAM User Authentification + * PAM User Authentication */ -#include "imp.h" #include #include "defines.h" @@ -37,7 +36,6 @@ #include #endif -#include "exp.h" #include "pam.h" static char *password; @@ -87,7 +85,7 @@ static struct pam_conv conv = { }; /** - * Authenticate a connectiong client using PAM. + * Authenticate a connecting client using PAM. * @param Client The client to authenticate. * @return true when authentication succeeded, false otherwise. */ @@ -102,8 +100,8 @@ PAM_Authenticate(CLIENT *Client) { /* Set supplied client password */ if (password) free(password); - password = strdup(Client_Password(Client)); - conv.appdata_ptr = Client_Password(Client); + password = strdup(Conn_Password(Client_Conn(Client))); + conv.appdata_ptr = Conn_Password(Client_Conn(Client)); /* Initialize PAM */ retval = pam_start("ngircd", Client_OrigUser(Client), &conv, &pam);