pam_sm_get_mapped_authtok.c revision 91100
140123Sdes/*-
250472Speter * Copyright (c) 2002 Networks Associates Technologies, Inc.
3709Swollman * All rights reserved.
437Srgrimes *
537Srgrimes * This software was developed for the FreeBSD Project by ThinkSec AS and
637Srgrimes * NAI Labs, the Security Research Division of Network Associates, Inc.
737Srgrimes * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
837Srgrimes * DARPA CHATS research program.
937Srgrimes *
108460Sjkh * Redistribution and use in source and binary forms, with or without
1143951Sjkh * modification, are permitted provided that the following conditions
128460Sjkh * are met:
138460Sjkh * 1. Redistributions of source code must retain the above copyright
1437Srgrimes *    notice, this list of conditions and the following disclaimer.
1537Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
1637Srgrimes *    notice, this list of conditions and the following disclaimer in the
1737Srgrimes *    documentation and/or other materials provided with the distribution.
1837Srgrimes * 3. The name of the author may not be used to endorse or promote
1937Srgrimes *    products derived from this software without specific prior written
2037Srgrimes *    permission.
2137Srgrimes *
2220684Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2337Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2437Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2543179Sdillon * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2643803Sdillon * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2743179Sdillon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2843803Sdillon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2943375Sdillon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3043375Sdillon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3143803Sdillon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3243179Sdillon * SUCH DAMAGE.
3343179Sdillon *
3443179Sdillon * $Id$
3543219Speter */
3643219Speter
3743849Sjkh#include <sys/param.h>
3843849Sjkh
3943849Sjkh#include <security/pam_appl.h>
4043219Speter#include <security/pam_modules.h>
4143219Speter
4243219Speter/*
4315568Sasami * XSSO 4.2.2
4443803Sdillon * XSSO 6 page 77
4515568Sasami *
4615568Sasami * Service module implementation for pam_get_mapped_authtok
4715568Sasami */
4850357Ssheldonh
4945239Sgrogint
5050357Ssheldonhpam_sm_get_mapped_authtok(pam_handle_t *pamh,
5150357Ssheldonh	char *target_module_username,
5242741Sgrog	char *target_module_type,
5342741Sgrog	char *target_authn_domain,
5443803Sdillon	size_t *target_authtok_len,
553843Sdg	unsigned char **target_module_authtok,
5650357Ssheldonh	int argc,
5737Srgrimes	char *argv)
5837Srgrimes{
5937Srgrimes
6037Srgrimes	return (PAM_SYSTEM_ERR);
6137Srgrimes}
6237Srgrimes
6337Srgrimes/*
6437Srgrimes * NODOC
6537Srgrimes */
6637Srgrimes