X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fpam.c;h=4e47ddb16d8d8be0eaa3b0ccddb6e411e1837960;hb=c8162a80beba80f3b1d04fdba8e74bf5366c47f7;hp=cfaa508f9a8e34d2b60306b1621b88d7da81fcb1;hpb=b130b35f48d19450240748425e12d21f2c38350f;p=ngircd-alex.git diff --git a/src/ngircd/pam.c b/src/ngircd/pam.c index cfaa508f..4e47ddb1 100644 --- a/src/ngircd/pam.c +++ b/src/ngircd/pam.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2010 Alexander Barton (alex@barton.de). + * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,6 +32,7 @@ #include "log.h" #include "conn.h" #include "client.h" +#include "conf.h" #include "pam.h" @@ -101,7 +102,7 @@ PAM_Authenticate(CLIENT *Client) { conv.appdata_ptr = Conn_Password(Client_Conn(Client)); /* Initialize PAM */ - retval = pam_start("ngircd", Client_OrigUser(Client), &conv, &pam); + retval = pam_start(Conf_PAMServiceName, Client_OrigUser(Client), &conv, &pam); if (retval != PAM_SUCCESS) { Log(LOG_ERR, "PAM: Failed to create authenticator! (%d)", retval); return false;