pam_set_mapped_authtok.c revision 348980
1139749Simp/*- 2122359Simp * Copyright (c) 2002-2003 Networks Associates Technology, Inc. 3122359Simp * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav 4122359Simp * All rights reserved. 5122359Simp * 639225Sgibbs * This software was developed for the FreeBSD Project by ThinkSec AS and 739225Sgibbs * Network Associates Laboratories, the Security Research Division of 839225Sgibbs * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 939225Sgibbs * ("CBOSS"), as part of the DARPA CHATS research program. 1039225Sgibbs * 1139225Sgibbs * Redistribution and use in source and binary forms, with or without 1239225Sgibbs * modification, are permitted provided that the following conditions 1339225Sgibbs * are met: 1439225Sgibbs * 1. Redistributions of source code must retain the above copyright 1539225Sgibbs * notice, this list of conditions and the following disclaimer. 1639225Sgibbs * 2. Redistributions in binary form must reproduce the above copyright 1739225Sgibbs * notice, this list of conditions and the following disclaimer in the 1839225Sgibbs * documentation and/or other materials provided with the distribution. 1939225Sgibbs * 3. The name of the author may not be used to endorse or promote 2039225Sgibbs * products derived from this software without specific prior written 2139225Sgibbs * permission. 2239225Sgibbs * 2339225Sgibbs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2439225Sgibbs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2539225Sgibbs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2639225Sgibbs * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2739225Sgibbs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2839225Sgibbs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2939225Sgibbs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3039225Sgibbs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3139225Sgibbs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3239225Sgibbs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3350477Speter * SUCH DAMAGE. 3439225Sgibbs * 3539225Sgibbs * $OpenPAM: pam_set_mapped_authtok.c 938 2017-04-30 21:34:42Z des $ 3639225Sgibbs */ 3739225Sgibbs 3839225Sgibbs#ifdef HAVE_CONFIG_H 3939225Sgibbs# include "config.h" 4039225Sgibbs#endif 4139225Sgibbs 4239225Sgibbs#include <security/pam_appl.h> 4339225Sgibbs 4439225Sgibbs/* 4539225Sgibbs * XSSO 4.2.1 4639225Sgibbs * XSSO 6 page 62 4739225Sgibbs * 4839225Sgibbs * Store the password for the username supplied 4939225Sgibbs */ 5039225Sgibbs 5139225Sgibbsint 5239225Sgibbspam_set_mapped_authtok(pam_handle_t *pamh, 5339225Sgibbs const char *target_module_username, 5439225Sgibbs size_t target_authtok_len, 5539225Sgibbs unsigned char *target_module_authtok, 5639225Sgibbs const char *target_module_type, 5739225Sgibbs const char *target_authn_domain) 5839225Sgibbs{ 5939225Sgibbs 6039225Sgibbs ENTER(); 6139225Sgibbs RETURNC(PAM_SYSTEM_ERR); 6239225Sgibbs} 6339225Sgibbs 6439225Sgibbs/* 6539225Sgibbs * NODOC 6639225Sgibbs */ 6739225Sgibbs