bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/*
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen SSSD
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen Compat declarations for PAM.
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen
82995cc154a929f37aa486a72a6485e9f8d34a30Timo Sirainen Authors:
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen Lukas Slebodnik <lslebodn@redhat.com>
abc8539e7ab1f4c1e853a1369d128e0194ea1692Timo Sirainen
11ead0d848f1751c8274e3422fa48fc7d9aee2e9Timo Sirainen Copyright (C) Red Hat, Inc 2014
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen This program is free software; you can redistribute it and/or modify
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen it under the terms of the GNU Lesser General Public License as published by
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen the Free Software Foundation; either version 3 of the License, or
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen (at your option) any later version.
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen
ac756824dc2be28eda7e9f70f1a694469f88d8bfTimo Sirainen This program is distributed in the hope that it will be useful,
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen but WITHOUT ANY WARRANTY; without even the implied warranty of
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a2871d937a75288bcd7177b2680d4e5096a7f3cbTimo Sirainen GNU Lesser General Public License for more details.
a2871d937a75288bcd7177b2680d4e5096a7f3cbTimo Sirainen
5e4c116a411967f1a012ac4f79732a724b5f6cc1Timo Sirainen You should have received a copy of the GNU Lesser General Public License
5e4c116a411967f1a012ac4f79732a724b5f6cc1Timo Sirainen along with this program. If not, see <http://www.gnu.org/licenses/>.
5e4c116a411967f1a012ac4f79732a724b5f6cc1Timo Sirainen*/
5e4c116a411967f1a012ac4f79732a724b5f6cc1Timo Sirainen
a2871d937a75288bcd7177b2680d4e5096a7f3cbTimo Sirainen#ifndef _SSS_PAM_COMPAT_H
a35cbba04d0a2823da98e693bd09a051addffdb2Timo Sirainen#define _SSS_PAM_COMPAT_H
9e96947aa6185341cbdd1140cb216fab3270ccbaTimo Sirainen
23ad3970cd22adb6c875caf95fa791548849f0d1Timo Sirainen#ifdef HAVE_SECURITY_PAM_MODUTIL_H
9e96947aa6185341cbdd1140cb216fab3270ccbaTimo Sirainen# include <security/pam_modutil.h>
9e96947aa6185341cbdd1140cb216fab3270ccbaTimo Sirainen#endif /* HAVE_SECURITY_PAM_MODUTIL_H */
9e96947aa6185341cbdd1140cb216fab3270ccbaTimo Sirainen
979e2379225b05df63ca3a0c55064edbc03d7afbTimo Sirainen#ifdef HAVE_SECURITY_PAM_EXT_H
6d6bbe8787354bbb69d0c03187adfe0f497d70b8Timo Sirainen# include <security/pam_ext.h>
6d6bbe8787354bbb69d0c03187adfe0f497d70b8Timo Sirainen#endif /* HAVE_SECURITY_PAM_EXT_H */
6d6bbe8787354bbb69d0c03187adfe0f497d70b8Timo Sirainen
6d6bbe8787354bbb69d0c03187adfe0f497d70b8Timo Sirainen#ifndef HAVE_PAM_VSYSLOG
6d6bbe8787354bbb69d0c03187adfe0f497d70b8Timo Sirainen#define pam_vsyslog(pamh, priority, fmt, vargs) \
979e2379225b05df63ca3a0c55064edbc03d7afbTimo Sirainen vsyslog((priority), (fmt), (vargs))
979e2379225b05df63ca3a0c55064edbc03d7afbTimo Sirainen#endif /* HAVE_PAM_VSYSLOG */
e101ed4afa1cfe5bb478491cbb5b8e7ff3de36ceTimo Sirainen
e101ed4afa1cfe5bb478491cbb5b8e7ff3de36ceTimo Sirainen#ifndef PAM_BAD_ITEM
e101ed4afa1cfe5bb478491cbb5b8e7ff3de36ceTimo Sirainen# define PAM_BAD_ITEM PAM_USER_UNKNOWN
e101ed4afa1cfe5bb478491cbb5b8e7ff3de36ceTimo Sirainen#endif /* PAM_BAD_ITEM */
39eefc53d06cf9790c6e3180a67b68e89eb71313Timo Sirainen
39eefc53d06cf9790c6e3180a67b68e89eb71313Timo Sirainen#endif /* _SSS_PAM_COMPAT_H */
39eefc53d06cf9790c6e3180a67b68e89eb71313Timo Sirainen