pam_set_mapped_username.c revision 91094
1279377Simp/*-
2279377Simp * Copyright (c) 2002 Networks Associates Technologies, Inc.
3279377Simp * All rights reserved.
4279377Simp *
5279377Simp * This software was developed for the FreeBSD Project by ThinkSec AS and
6279377Simp * NAI Labs, the Security Research Division of Network Associates, Inc.
7279377Simp * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the
8279377Simp * DARPA CHATS research program.
9279377Simp *
10279377Simp * Redistribution and use in source and binary forms, with or without
11279377Simp * modification, are permitted provided that the following conditions
12279377Simp * are met:
13279377Simp * 1. Redistributions of source code must retain the above copyright
14279377Simp *    notice, this list of conditions and the following disclaimer.
15279377Simp * 2. Redistributions in binary form must reproduce the above copyright
16279377Simp *    notice, this list of conditions and the following disclaimer in the
17279377Simp *    documentation and/or other materials provided with the distribution.
18279377Simp * 3. The name of the author may not be used to endorse or promote
19279377Simp *    products derived from this software without specific prior written
20279377Simp *    permission.
21279377Simp *
22279377Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23279377Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24279377Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25279377Simp * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
26279377Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27279377Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28279377Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29279377Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30279377Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31279377Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32279377Simp * SUCH DAMAGE.
33279377Simp *
34279377Simp * $Id$
35279377Simp */
36279377Simp
37279377Simp#include <security/pam_appl.h>
38279377Simp
39279377Simpint
40279377Simppam_set_mapped_username(pam_handle_t *pamh,
41279377Simp	char *src_username,
42279377Simp	char *src_module_type,
43279377Simp	char *src_authn_domain,
44279377Simp	char *target_module_username,
45279377Simp	char *target_module_type,
46279377Simp	char *target_authn_domain)
47279377Simp{
48279377Simp
49279377Simp	return (PAM_SYSTEM_ERR);
50279377Simp}
51279377Simp