1998-11-18 01:44:37 +00:00
|
|
|
/*-
|
|
|
|
* Copyright 1998 Juniper Networks, Inc.
|
|
|
|
* All rights reserved.
|
2003-05-31 17:19:03 +00:00
|
|
|
* Copyright (c) 2001-2003 Networks Associates Technology, Inc.
|
2001-12-05 16:06:35 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Portions of this software were developed for the FreeBSD Project by
|
|
|
|
* ThinkSec AS and NAI Labs, the Security Research Division of Network
|
|
|
|
* Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
|
|
|
|
* ("CBOSS"), as part of the DARPA CHATS research program.
|
1998-11-18 01:44:37 +00:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2001-12-05 16:06:35 +00:00
|
|
|
* 3. The name of the author may not be used to endorse or promote
|
|
|
|
* products derived from this software without specific prior written
|
|
|
|
* permission.
|
1998-11-18 01:44:37 +00:00
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2001-09-30 22:11:06 +00:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
1998-11-18 01:44:37 +00:00
|
|
|
#include <sys/param.h>
|
2003-11-12 17:47:23 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netdb.h>
|
1998-11-18 01:44:37 +00:00
|
|
|
#include <pwd.h>
|
|
|
|
#include <radlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <syslog.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#define PAM_SM_AUTH
|
2001-12-05 16:06:35 +00:00
|
|
|
|
2002-02-05 06:08:26 +00:00
|
|
|
#include <security/pam_appl.h>
|
1998-11-18 01:44:37 +00:00
|
|
|
#include <security/pam_modules.h>
|
2002-02-05 06:08:26 +00:00
|
|
|
#include <security/pam_mod_misc.h>
|
1998-11-18 01:44:37 +00:00
|
|
|
|
2003-05-31 16:55:07 +00:00
|
|
|
#define PAM_OPT_CONF "conf"
|
|
|
|
#define PAM_OPT_TEMPLATE_USER "template_user"
|
|
|
|
#define PAM_OPT_NAS_ID "nas_id"
|
2003-11-12 17:47:23 +00:00
|
|
|
#define PAM_OPT_NAS_IPADDR "nas_ipaddr"
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
#define MAX_CHALLENGE_MSGS 10
|
2002-04-06 19:30:04 +00:00
|
|
|
#define PASSWORD_PROMPT "RADIUS Password:"
|
1998-11-18 01:44:37 +00:00
|
|
|
|
|
|
|
static int build_access_request(struct rad_handle *, const char *,
|
2003-11-12 17:47:23 +00:00
|
|
|
const char *, const char *, const char *, const void *,
|
|
|
|
size_t);
|
1998-11-18 01:44:37 +00:00
|
|
|
static int do_accept(pam_handle_t *, struct rad_handle *);
|
|
|
|
static int do_challenge(pam_handle_t *, struct rad_handle *,
|
|
|
|
const char *);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Construct an access request, but don't send it. Returns 0 on success,
|
|
|
|
* -1 on failure.
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
build_access_request(struct rad_handle *radh, const char *user,
|
2003-11-12 17:47:23 +00:00
|
|
|
const char *pass, const char *nas_id, const char *nas_ipaddr,
|
|
|
|
const void *state, size_t state_len)
|
1998-11-18 01:44:37 +00:00
|
|
|
{
|
2003-11-12 17:47:23 +00:00
|
|
|
int error;
|
|
|
|
char host[MAXHOSTNAMELEN];
|
|
|
|
struct sockaddr_in *haddr;
|
|
|
|
struct addrinfo hints;
|
|
|
|
struct addrinfo *res;
|
1998-11-18 01:44:37 +00:00
|
|
|
|
|
|
|
if (rad_create_request(radh, RAD_ACCESS_REQUEST) == -1) {
|
|
|
|
syslog(LOG_CRIT, "rad_create_request: %s", rad_strerror(radh));
|
2002-04-12 22:27:25 +00:00
|
|
|
return (-1);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2003-11-12 17:47:23 +00:00
|
|
|
if (nas_id == NULL ||
|
|
|
|
(nas_ipaddr != NULL && strlen(nas_ipaddr) == 0)) {
|
|
|
|
if (gethostname(host, sizeof host) != -1) {
|
|
|
|
if (nas_id == NULL)
|
|
|
|
nas_id = host;
|
|
|
|
if (nas_ipaddr != NULL && strlen(nas_ipaddr) == 0)
|
|
|
|
nas_ipaddr = host;
|
|
|
|
}
|
|
|
|
}
|
1998-11-18 01:44:37 +00:00
|
|
|
if ((user != NULL &&
|
|
|
|
rad_put_string(radh, RAD_USER_NAME, user) == -1) ||
|
|
|
|
(pass != NULL &&
|
|
|
|
rad_put_string(radh, RAD_USER_PASSWORD, pass) == -1) ||
|
2002-10-28 10:28:46 +00:00
|
|
|
(nas_id != NULL &&
|
|
|
|
rad_put_string(radh, RAD_NAS_IDENTIFIER, nas_id) == -1)) {
|
1998-11-18 01:44:37 +00:00
|
|
|
syslog(LOG_CRIT, "rad_put_string: %s", rad_strerror(radh));
|
2002-04-12 22:27:25 +00:00
|
|
|
return (-1);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2003-11-12 17:47:23 +00:00
|
|
|
if (nas_ipaddr != NULL) {
|
|
|
|
memset(&hints, 0, sizeof(hints));
|
|
|
|
hints.ai_family = PF_INET;
|
|
|
|
if (getaddrinfo(nas_ipaddr, NULL, &hints, &res) == 0 &&
|
|
|
|
res != NULL) {
|
2004-06-25 12:32:45 +00:00
|
|
|
(struct sockaddr *)haddr = res->ai_addr;
|
2003-11-12 17:47:23 +00:00
|
|
|
error = rad_put_addr(radh, RAD_NAS_IP_ADDRESS,
|
|
|
|
haddr->sin_addr);
|
|
|
|
freeaddrinfo(res);
|
|
|
|
if (error == -1) {
|
|
|
|
syslog(LOG_CRIT, "rad_put_addr: %s",
|
|
|
|
rad_strerror(radh));
|
|
|
|
return (-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
1998-11-18 01:44:37 +00:00
|
|
|
if (state != NULL && rad_put_attr(radh, RAD_STATE, state,
|
|
|
|
state_len) == -1) {
|
|
|
|
syslog(LOG_CRIT, "rad_put_attr: %s", rad_strerror(radh));
|
2002-04-12 22:27:25 +00:00
|
|
|
return (-1);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
if (rad_put_int(radh, RAD_SERVICE_TYPE, RAD_AUTHENTICATE_ONLY) == -1) {
|
|
|
|
syslog(LOG_CRIT, "rad_put_int: %s", rad_strerror(radh));
|
2002-04-12 22:27:25 +00:00
|
|
|
return (-1);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2002-04-12 22:27:25 +00:00
|
|
|
return (0);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
do_accept(pam_handle_t *pamh, struct rad_handle *radh)
|
|
|
|
{
|
|
|
|
int attrtype;
|
|
|
|
const void *attrval;
|
|
|
|
size_t attrlen;
|
|
|
|
char *s;
|
|
|
|
|
|
|
|
while ((attrtype = rad_get_attr(radh, &attrval, &attrlen)) > 0) {
|
|
|
|
if (attrtype == RAD_USER_NAME) {
|
|
|
|
s = rad_cvt_string(attrval, attrlen);
|
|
|
|
if (s == NULL) {
|
|
|
|
syslog(LOG_CRIT,
|
|
|
|
"rad_cvt_string: out of memory");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (-1);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
pam_set_item(pamh, PAM_USER, s);
|
|
|
|
free(s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (attrtype == -1) {
|
|
|
|
syslog(LOG_CRIT, "rad_get_attr: %s", rad_strerror(radh));
|
2002-04-12 22:27:25 +00:00
|
|
|
return (-1);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2002-04-12 22:27:25 +00:00
|
|
|
return (0);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
do_challenge(pam_handle_t *pamh, struct rad_handle *radh, const char *user)
|
|
|
|
{
|
|
|
|
int retval;
|
|
|
|
int attrtype;
|
|
|
|
const void *attrval;
|
|
|
|
size_t attrlen;
|
|
|
|
const void *state;
|
|
|
|
size_t statelen;
|
|
|
|
struct pam_message msgs[MAX_CHALLENGE_MSGS];
|
|
|
|
const struct pam_message *msg_ptrs[MAX_CHALLENGE_MSGS];
|
|
|
|
struct pam_response *resp;
|
|
|
|
int num_msgs;
|
|
|
|
const void *item;
|
|
|
|
const struct pam_conv *conv;
|
|
|
|
|
|
|
|
state = NULL;
|
|
|
|
statelen = 0;
|
|
|
|
num_msgs = 0;
|
|
|
|
while ((attrtype = rad_get_attr(radh, &attrval, &attrlen)) > 0) {
|
|
|
|
switch (attrtype) {
|
|
|
|
|
|
|
|
case RAD_STATE:
|
|
|
|
state = attrval;
|
|
|
|
statelen = attrlen;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case RAD_REPLY_MESSAGE:
|
|
|
|
if (num_msgs >= MAX_CHALLENGE_MSGS) {
|
|
|
|
syslog(LOG_CRIT,
|
|
|
|
"Too many RADIUS challenge messages");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
msgs[num_msgs].msg = rad_cvt_string(attrval, attrlen);
|
|
|
|
if (msgs[num_msgs].msg == NULL) {
|
|
|
|
syslog(LOG_CRIT,
|
|
|
|
"rad_cvt_string: out of memory");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
msgs[num_msgs].msg_style = PAM_TEXT_INFO;
|
|
|
|
msg_ptrs[num_msgs] = &msgs[num_msgs];
|
|
|
|
num_msgs++;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (attrtype == -1) {
|
|
|
|
syslog(LOG_CRIT, "rad_get_attr: %s", rad_strerror(radh));
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
if (num_msgs == 0) {
|
|
|
|
msgs[num_msgs].msg = strdup("(null RADIUS challenge): ");
|
|
|
|
if (msgs[num_msgs].msg == NULL) {
|
|
|
|
syslog(LOG_CRIT, "Out of memory");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
msgs[num_msgs].msg_style = PAM_TEXT_INFO;
|
|
|
|
msg_ptrs[num_msgs] = &msgs[num_msgs];
|
|
|
|
num_msgs++;
|
|
|
|
}
|
|
|
|
msgs[num_msgs-1].msg_style = PAM_PROMPT_ECHO_ON;
|
|
|
|
if ((retval = pam_get_item(pamh, PAM_CONV, &item)) != PAM_SUCCESS) {
|
|
|
|
syslog(LOG_CRIT, "do_challenge: cannot get PAM_CONV");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (retval);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
conv = (const struct pam_conv *)item;
|
|
|
|
if ((retval = conv->conv(num_msgs, msg_ptrs, &resp,
|
|
|
|
conv->appdata_ptr)) != PAM_SUCCESS)
|
2002-04-12 22:27:25 +00:00
|
|
|
return (retval);
|
2002-10-28 10:28:46 +00:00
|
|
|
if (build_access_request(radh, user, resp[num_msgs-1].resp, NULL,
|
2003-11-12 17:47:23 +00:00
|
|
|
NULL, state, statelen) == -1)
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
memset(resp[num_msgs-1].resp, 0, strlen(resp[num_msgs-1].resp));
|
|
|
|
free(resp[num_msgs-1].resp);
|
|
|
|
free(resp);
|
|
|
|
while (num_msgs > 0)
|
2003-07-21 19:56:28 +00:00
|
|
|
free(msgs[--num_msgs].msg);
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SUCCESS);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
PAM_EXTERN int
|
2002-04-12 22:27:25 +00:00
|
|
|
pam_sm_authenticate(pam_handle_t *pamh, int flags __unused,
|
2003-05-31 16:55:07 +00:00
|
|
|
int argc __unused, const char *argv[] __unused)
|
1998-11-18 01:44:37 +00:00
|
|
|
{
|
|
|
|
struct rad_handle *radh;
|
2003-12-11 13:55:16 +00:00
|
|
|
const char *user, *pass;
|
|
|
|
const void *tmpuser;
|
2003-11-12 17:47:23 +00:00
|
|
|
const char *conf_file, *template_user, *nas_id, *nas_ipaddr;
|
1998-11-18 01:44:37 +00:00
|
|
|
int retval;
|
|
|
|
int e;
|
|
|
|
|
2003-05-31 16:55:07 +00:00
|
|
|
conf_file = openpam_get_option(pamh, PAM_OPT_CONF);
|
|
|
|
template_user = openpam_get_option(pamh, PAM_OPT_TEMPLATE_USER);
|
|
|
|
nas_id = openpam_get_option(pamh, PAM_OPT_NAS_ID);
|
2003-11-12 17:47:23 +00:00
|
|
|
nas_ipaddr = openpam_get_option(pamh, PAM_OPT_NAS_IPADDR);
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
retval = pam_get_user(pamh, &user, NULL);
|
|
|
|
if (retval != PAM_SUCCESS)
|
2002-04-12 22:27:25 +00:00
|
|
|
return (retval);
|
1998-11-18 01:44:37 +00:00
|
|
|
|
2001-07-09 18:20:51 +00:00
|
|
|
PAM_LOG("Got user: %s", user);
|
|
|
|
|
2002-04-06 19:30:04 +00:00
|
|
|
retval = pam_get_authtok(pamh, PAM_AUTHTOK, &pass, PASSWORD_PROMPT);
|
2001-07-09 18:20:51 +00:00
|
|
|
if (retval != PAM_SUCCESS)
|
2002-04-12 22:27:25 +00:00
|
|
|
return (retval);
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
PAM_LOG("Got password");
|
|
|
|
|
|
|
|
radh = rad_open();
|
|
|
|
if (radh == NULL) {
|
1998-11-18 01:44:37 +00:00
|
|
|
syslog(LOG_CRIT, "rad_open failed");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
PAM_LOG("Radius opened");
|
|
|
|
|
1998-11-18 01:44:37 +00:00
|
|
|
if (rad_config(radh, conf_file) == -1) {
|
|
|
|
syslog(LOG_ALERT, "rad_config: %s", rad_strerror(radh));
|
|
|
|
rad_close(radh);
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
PAM_LOG("Radius config file read");
|
|
|
|
|
2003-11-12 17:47:23 +00:00
|
|
|
if (build_access_request(radh, user, pass, nas_id, nas_ipaddr, NULL,
|
|
|
|
0) == -1) {
|
1998-11-18 01:44:37 +00:00
|
|
|
rad_close(radh);
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
PAM_LOG("Radius build access done");
|
|
|
|
|
2001-12-05 16:06:35 +00:00
|
|
|
for (;;) {
|
1998-11-18 01:44:37 +00:00
|
|
|
switch (rad_send_request(radh)) {
|
|
|
|
|
|
|
|
case RAD_ACCESS_ACCEPT:
|
|
|
|
e = do_accept(pamh, radh);
|
|
|
|
rad_close(radh);
|
|
|
|
if (e == -1)
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
if (template_user != NULL) {
|
2001-07-09 18:20:51 +00:00
|
|
|
|
|
|
|
PAM_LOG("Trying template user: %s",
|
|
|
|
template_user);
|
1998-11-18 01:44:37 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* If the given user name doesn't exist in
|
|
|
|
* the local password database, change it
|
|
|
|
* to the value given in the "template_user"
|
|
|
|
* option.
|
|
|
|
*/
|
2003-12-11 13:55:16 +00:00
|
|
|
retval = pam_get_item(pamh, PAM_USER, &tmpuser);
|
1998-11-18 01:44:37 +00:00
|
|
|
if (retval != PAM_SUCCESS)
|
2002-04-12 22:27:25 +00:00
|
|
|
return (retval);
|
2001-07-09 18:20:51 +00:00
|
|
|
if (getpwnam(tmpuser) == NULL) {
|
1998-11-18 01:44:37 +00:00
|
|
|
pam_set_item(pamh, PAM_USER,
|
|
|
|
template_user);
|
2001-07-09 18:20:51 +00:00
|
|
|
PAM_LOG("Using template user");
|
|
|
|
}
|
|
|
|
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SUCCESS);
|
1998-11-18 01:44:37 +00:00
|
|
|
|
|
|
|
case RAD_ACCESS_REJECT:
|
|
|
|
rad_close(radh);
|
2001-08-10 19:12:59 +00:00
|
|
|
PAM_VERBOSE_ERROR("Radius rejection");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_AUTH_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
|
|
|
|
case RAD_ACCESS_CHALLENGE:
|
2001-07-09 18:20:51 +00:00
|
|
|
retval = do_challenge(pamh, radh, user);
|
|
|
|
if (retval != PAM_SUCCESS) {
|
1998-11-18 01:44:37 +00:00
|
|
|
rad_close(radh);
|
2002-04-12 22:27:25 +00:00
|
|
|
return (retval);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case -1:
|
|
|
|
syslog(LOG_CRIT, "rad_send_request: %s",
|
|
|
|
rad_strerror(radh));
|
|
|
|
rad_close(radh);
|
2001-08-10 19:12:59 +00:00
|
|
|
PAM_VERBOSE_ERROR("Radius failure");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_AUTHINFO_UNAVAIL);
|
1998-11-18 01:44:37 +00:00
|
|
|
|
|
|
|
default:
|
|
|
|
syslog(LOG_CRIT,
|
|
|
|
"rad_send_request: unexpected return value");
|
|
|
|
rad_close(radh);
|
2001-08-10 19:12:59 +00:00
|
|
|
PAM_VERBOSE_ERROR("Radius error");
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SERVICE_ERR);
|
1998-11-18 01:44:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
PAM_EXTERN int
|
2002-04-12 22:27:25 +00:00
|
|
|
pam_sm_setcred(pam_handle_t *pamh __unused, int flags __unused,
|
|
|
|
int argc __unused, const char *argv[] __unused)
|
1998-11-18 01:44:37 +00:00
|
|
|
{
|
2001-12-05 16:06:35 +00:00
|
|
|
|
2002-04-12 22:27:25 +00:00
|
|
|
return (PAM_SUCCESS);
|
2001-12-05 16:06:35 +00:00
|
|
|
}
|
|
|
|
|
1999-01-20 21:55:30 +00:00
|
|
|
PAM_MODULE_ENTRY("pam_radius");
|