pam_sm_set_mapped_username.c revision 302408
1108873Schris/*- 2108873Schris * Copyright (c) 2002-2003 Networks Associates Technology, Inc. 3115633Sru * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav 4108873Schris * All rights reserved. 5108873Schris * 6108873Schris * This software was developed for the FreeBSD Project by ThinkSec AS and 7108873Schris * Network Associates Laboratories, the Security Research Division of 8108873Schris * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 9115633Sru * ("CBOSS"), as part of the DARPA CHATS research program. 10108873Schris * 11108873Schris * Redistribution and use in source and binary forms, with or without 12108873Schris * modification, are permitted provided that the following conditions 13108873Schris * are met: 14108873Schris * 1. Redistributions of source code must retain the above copyright 15108873Schris * notice, this list of conditions and the following disclaimer. 16108873Schris * 2. Redistributions in binary form must reproduce the above copyright 17108873Schris * notice, this list of conditions and the following disclaimer in the 18115633Sru * documentation and/or other materials provided with the distribution. 19108873Schris * 3. The name of the author may not be used to endorse or promote 20108873Schris * products derived from this software without specific prior written 21108873Schris * permission. 22108873Schris * 23108873Schris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 24108873Schris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25108873Schris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26108873Schris * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 27108873Schris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28108873Schris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29108873Schris * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30115633Sru * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31108873Schris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32115633Sru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33131421Sru * SUCH DAMAGE. 34206622Suqs * 35108873Schris * $Id: pam_sm_set_mapped_username.c 648 2013-03-05 17:54:27Z des $ 36108873Schris */ 37108873Schris 38115633Sru#ifdef HAVE_CONFIG_H 39108873Schris# include "config.h" 40108873Schris#endif 41108873Schris 42145139Srwatson#include <sys/param.h> 43145139Srwatson 44108873Schris#include <security/pam_appl.h> 45108873Schris#include <security/pam_modules.h> 46108873Schris 47108873Schris/* 48108873Schris * XSSO 4.2.2 49108873Schris * XSSO 6 page 85 50108873Schris * 51108873Schris * Service module implementation for pam_set_mapped_username 52108873Schris */ 53108873Schris 54108873Schrisint 55115633Srupam_sm_set_mapped_username(pam_handle_t *pamh, 56108873Schris char *target_module_username, 57108873Schris char *target_module_type, 58115633Sru char *target_authn_domain, 59108873Schris int argc, 60108873Schris const char **argv) 61108873Schris{ 62108873Schris 63108873Schris ENTER(); 64108873Schris RETURNC(PAM_SYSTEM_ERR); 65108873Schris} 66108873Schris 67108873Schris/* 68108878Schris * NODOC 69108873Schris */ 70108873Schris