|
rpm-build |
37ea01 |
/*
|
|
rpm-build |
37ea01 |
* src/clients/ksu/pam.h
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* Copyright 2007,2009,2010 Red Hat, Inc.
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* All Rights Reserved.
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* Redistribution and use in source and binary forms, with or without
|
|
rpm-build |
37ea01 |
* modification, are permitted provided that the following conditions are met:
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* Redistributions of source code must retain the above copyright notice, this
|
|
rpm-build |
37ea01 |
* list of conditions and the following disclaimer.
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* Redistributions in binary form must reproduce the above copyright notice,
|
|
rpm-build |
37ea01 |
* this list of conditions and the following disclaimer in the documentation
|
|
rpm-build |
37ea01 |
* and/or other materials provided with the distribution.
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* Neither the name of Red Hat, Inc. nor the names of its contributors may be
|
|
rpm-build |
37ea01 |
* used to endorse or promote products derived from this software without
|
|
rpm-build |
37ea01 |
* specific prior written permission.
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
rpm-build |
37ea01 |
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
rpm-build |
37ea01 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
rpm-build |
37ea01 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
rpm-build |
37ea01 |
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
rpm-build |
37ea01 |
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
rpm-build |
37ea01 |
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
rpm-build |
37ea01 |
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
rpm-build |
37ea01 |
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
rpm-build |
37ea01 |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
rpm-build |
37ea01 |
* POSSIBILITY OF SUCH DAMAGE.
|
|
rpm-build |
37ea01 |
*
|
|
rpm-build |
37ea01 |
* Convenience wrappers for using PAM.
|
|
rpm-build |
37ea01 |
*/
|
|
rpm-build |
37ea01 |
|
|
rpm-build |
37ea01 |
#include <krb5.h>
|
|
rpm-build |
37ea01 |
#ifdef HAVE_SECURITY_PAM_APPL_H
|
|
rpm-build |
37ea01 |
#include <security/pam_appl.h>
|
|
rpm-build |
37ea01 |
#endif
|
|
rpm-build |
37ea01 |
|
|
rpm-build |
37ea01 |
#define USE_PAM_CONFIGURATION_KEYWORD "use_pam"
|
|
rpm-build |
37ea01 |
|
|
rpm-build |
37ea01 |
#ifdef USE_PAM
|
|
rpm-build |
37ea01 |
int appl_pam_enabled(krb5_context context, const char *section);
|
|
rpm-build |
37ea01 |
int appl_pam_acct_mgmt(const char *service, int interactive,
|
|
rpm-build |
37ea01 |
const char *local_username,
|
|
rpm-build |
37ea01 |
const char *non_interactive_password,
|
|
rpm-build |
37ea01 |
const char *hostname,
|
|
rpm-build |
37ea01 |
const char *ruser,
|
|
rpm-build |
37ea01 |
const char *tty);
|
|
rpm-build |
37ea01 |
int appl_pam_requires_chauthtok(void);
|
|
rpm-build |
37ea01 |
int appl_pam_session_open(void);
|
|
rpm-build |
37ea01 |
int appl_pam_setenv(void);
|
|
rpm-build |
37ea01 |
int appl_pam_cred_init(void);
|
|
rpm-build |
37ea01 |
void appl_pam_cleanup(void);
|
|
rpm-build |
37ea01 |
#endif
|