X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fpam.c;h=88872c47c5f841d9b008da5fdc59a39281f4f2bb;hp=0d4f27f066c91dae8da42e21ec0f3136ce03af0a;hb=55859c1befa7cd04a130f1816cb73a9629637105;hpb=76f40bdb988440a73431eb14a27f30aeaa18ebe5 diff --git a/src/ngircd/pam.c b/src/ngircd/pam.c index 0d4f27f0..88872c47 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 @@ -99,8 +102,8 @@ PAM_Authenticate(CLIENT *Client) { /* Set supplied client password */ if (password) free(password); - password = strdup(Client_Password(Client)); - conv.appdata_ptr = password; + 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);