11541Srgrimes/*-
21541Srgrimes * Copyright (c) 2002-2003 Networks Associates Technology, Inc.
31541Srgrimes * Copyright (c) 2004-2011 Dag-Erling Sm��rgrav
41541Srgrimes * All rights reserved.
51541Srgrimes *
61541Srgrimes * This software was developed for the FreeBSD Project by ThinkSec AS and
71541Srgrimes * Network Associates Laboratories, the Security Research Division of
81541Srgrimes * Network Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
91541Srgrimes * ("CBOSS"), as part of the DARPA CHATS research program.
101541Srgrimes *
111541Srgrimes * Redistribution and use in source and binary forms, with or without
121541Srgrimes * modification, are permitted provided that the following conditions
131541Srgrimes * are met:
141541Srgrimes * 1. Redistributions of source code must retain the above copyright
151541Srgrimes *    notice, this list of conditions and the following disclaimer.
161541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright
171541Srgrimes *    notice, this list of conditions and the following disclaimer in the
181541Srgrimes *    documentation and/or other materials provided with the distribution.
191541Srgrimes * 3. The name of the author may not be used to endorse or promote
201541Srgrimes *    products derived from this software without specific prior written
211541Srgrimes *    permission.
221541Srgrimes *
231541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
241541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
251541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
261541Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
271541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
281541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
291541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
301541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
311541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
321541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
331541Srgrimes * SUCH DAMAGE.
3438517Sdfr *
351541Srgrimes * $Id: pam_sm_setcred.c 648 2013-03-05 17:54:27Z des $
361541Srgrimes */
3731778Seivind
3831778Seivind#ifdef HAVE_CONFIG_H
391541Srgrimes# include "config.h"
401541Srgrimes#endif
4112221Sbde
421541Srgrimes#include <sys/param.h>
431541Srgrimes
441541Srgrimes#include <security/pam_appl.h>
451549Srgrimes#include <security/pam_modules.h>
461541Srgrimes
478876Srgrimes/*
481541Srgrimes * XSSO 4.2.2
491541Srgrimes * XSSO 6 page 87
5012221Sbde *
511541Srgrimes * Service module implementation for pam_setcred
521541Srgrimes */
531541Srgrimes
541541Srgrimesint
5512221Sbdepam_sm_setcred(pam_handle_t *pamh,
561541Srgrimes	int flags,
571549Srgrimes	int argc,
5830994Sphk	const char **argv)
591541Srgrimes{
601541Srgrimes
611541Srgrimes	ENTER();
6212171Sphk	RETURNC(PAM_SYSTEM_ERR);
6338517Sdfr}
641541Srgrimes
6512171Sphk
6612171Sphk/*
6738517Sdfr * Error codes:
6812171Sphk *
691541Srgrimes *	PAM_SERVICE_ERR
701541Srgrimes *	PAM_SYSTEM_ERR
7112221Sbde *	PAM_BUF_ERR
721541Srgrimes *	PAM_CONV_ERR
731541Srgrimes *	PAM_PERM_DENIED
741541Srgrimes *	PAM_IGNORE
751541Srgrimes *	PAM_ABORT
7612221Sbde *
771541Srgrimes *	PAM_CRED_UNAVAIL
781549Srgrimes *	PAM_CRED_EXPIRED
7930994Sphk *	PAM_USER_UNKNOWN
801541Srgrimes *	PAM_CRED_ERR
811541Srgrimes */
821541Srgrimes
8312171Sphk/**
841541Srgrimes * The =pam_sm_setcred function is the service module's implementation of
851541Srgrimes * the =pam_setcred API function.
8612171Sphk */
8712171Sphk