mirror of
git://git.gnu.org.ua/pam-modules.git
synced 2025-04-26 16:39:53 +03:00
Compare commits
3 commits
release-2.
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3573fa1222 | ||
![]() |
48dff4f38c | ||
![]() |
a52fff3061 |
9 changed files with 28 additions and 36 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
AC_DEFUN([PM_ENABLE],[
|
AC_DEFUN([PM_ENABLE],[
|
||||||
AC_ARG_ENABLE($1,
|
AC_ARG_ENABLE($1,
|
||||||
AC_HELP_STRING([--disable-$1], [Disable pam_$1]),
|
AS_HELP_STRING([--disable-$1], [Disable pam_$1]),
|
||||||
[build_$1=$enableval],
|
[build_$1=$enableval],
|
||||||
[build_$1=m4_if([$2],[],yes,probe)])
|
[build_$1=m4_if([$2],[],yes,probe)])
|
||||||
m4_pushdef([upmodname],translit($1, [a-z.-], [A-Z__]))
|
m4_pushdef([upmodname],translit($1, [a-z.-], [A-Z__]))
|
||||||
|
|
39
configure.ac
39
configure.ac
|
@ -14,14 +14,14 @@
|
||||||
# You should have received a copy of the GNU General Public License along
|
# You should have received a copy of the GNU General Public License along
|
||||||
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
# with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
AC_PREREQ(2.63)
|
AC_PREREQ([2.71])
|
||||||
|
|
||||||
AC_INIT(pam-modules, 2.5, bug-pam-modules@gnu.org.ua)
|
AC_INIT([pam-modules],[2.5.90],[bug-pam-modules@gnu.org.ua])
|
||||||
AC_CONFIG_SRCDIR(pam_fshadow/pam_fshadow.c)
|
AC_CONFIG_SRCDIR(pam_fshadow/pam_fshadow.c)
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AM_INIT_AUTOMAKE([1.11 no-exeext tar-ustar dist-xz silent-rules subdir-objects])
|
AM_INIT_AUTOMAKE([1.16.5 no-exeext tar-ustar dist-xz silent-rules subdir-objects])
|
||||||
AM_CONFIG_HEADER(config.h)
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
# Enable silent rules by default:
|
# Enable silent rules by default:
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
|
@ -35,7 +35,7 @@ dnl Checks for programs.
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
AM_DISABLE_STATIC
|
AC_DISABLE_STATIC([])
|
||||||
LT_PREREQ(2.2.5a)
|
LT_PREREQ(2.2.5a)
|
||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ AC_CHECK_LIB(pam, pam_get_item,:,
|
||||||
[AC_MSG_ERROR([Required library libpam is not found])])
|
[AC_MSG_ERROR([Required library libpam is not found])])
|
||||||
|
|
||||||
AC_ARG_WITH(crypt-lib,
|
AC_ARG_WITH(crypt-lib,
|
||||||
AC_HELP_STRING([--with-crypt-lib=LIB],
|
AS_HELP_STRING([--with-crypt-lib=LIB],
|
||||||
[use -lLIB instead of -lcrypt]),
|
[use -lLIB instead of -lcrypt]),
|
||||||
[cryptlib=$withval],
|
[cryptlib=$withval],
|
||||||
[cryptlib=crypt])
|
[cryptlib=crypt])
|
||||||
|
@ -59,7 +59,6 @@ AC_CHECK_LIB(pam_misc, pam_misc_setenv,
|
||||||
AC_DEFINE([HAVE_PAM_MISC_SETENV],1)],:,[-lpam])
|
AC_DEFINE([HAVE_PAM_MISC_SETENV],1)],:,[-lpam])
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_CHECK_HEADERS(security/pam_appl.h security/pam_modules.h,
|
AC_CHECK_HEADERS(security/pam_appl.h security/pam_modules.h,
|
||||||
:,
|
:,
|
||||||
AC_MSG_ERROR([Required PAM header files not found]))
|
AC_MSG_ERROR([Required PAM header files not found]))
|
||||||
|
@ -89,20 +88,20 @@ PM_ENABLE(groupmember)
|
||||||
# Check for SQL support
|
# Check for SQL support
|
||||||
|
|
||||||
AC_ARG_WITH(mysql,
|
AC_ARG_WITH(mysql,
|
||||||
AC_HELP_STRING([--without-mysql],
|
AS_HELP_STRING([--without-mysql],
|
||||||
[Configure to work without MySQL]),
|
[Configure to work without MySQL]),
|
||||||
[want_mysql=$withval])
|
[want_mysql=$withval])
|
||||||
AC_ARG_WITH(pgsql,
|
AC_ARG_WITH(pgsql,
|
||||||
AC_HELP_STRING([--without-pgsql],
|
AS_HELP_STRING([--without-pgsql],
|
||||||
[Configure to work without Postgres]),
|
[Configure to work without Postgres]),
|
||||||
[want_pgsql=$withval])
|
[want_pgsql=$withval])
|
||||||
AC_ARG_WITH(postgres,
|
AC_ARG_WITH(postgres,
|
||||||
AC_HELP_STRING([--without-postgres],
|
AS_HELP_STRING([--without-postgres],
|
||||||
[Same as --without-pgsql]),
|
[Same as --without-pgsql]),
|
||||||
[want_pgsql=$withval])
|
[want_pgsql=$withval])
|
||||||
AC_ARG_WITH(sql,
|
AC_ARG_WITH(sql,
|
||||||
AC_HELP_STRING([--without-sql],
|
AS_HELP_STRING([--without-sql],
|
||||||
[Do not build SQL dependent modules]),
|
[Do not build SQL dependent modules]),
|
||||||
[want_mysql=$withval
|
[want_mysql=$withval
|
||||||
want_pgsql=$withval])
|
want_pgsql=$withval])
|
||||||
|
|
||||||
|
@ -188,15 +187,15 @@ esac])
|
||||||
## debugging support
|
## debugging support
|
||||||
## *****************
|
## *****************
|
||||||
AC_ARG_ENABLE(debug,
|
AC_ARG_ENABLE(debug,
|
||||||
AC_HELP_STRING([--enable-debug], [enable debugging mode]),
|
AS_HELP_STRING([--enable-debug],[enable debugging mode]),
|
||||||
[if test "$enableval" = yes; then
|
[if test "$enableval" = yes; then
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
AC_MSG_CHECKING(whether gcc accepts -ggdb)
|
AC_MSG_CHECKING(whether gcc accepts -ggdb)
|
||||||
save_CFLAGS=$CFLAGS
|
save_CFLAGS=$CFLAGS
|
||||||
CFLAGS="-ggdb -Wall"
|
CFLAGS="-ggdb -Wall"
|
||||||
AC_TRY_COMPILE([],void f(){},
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[void f(){}]])],
|
||||||
AC_MSG_RESULT(yes),
|
[AC_MSG_RESULT(yes)],
|
||||||
[if test x"$ac_cv_prog_cc_g" = xyes; then
|
[if test x"$ac_cv_prog_cc_g" = xyes; then
|
||||||
CFLAGS="-g -Wall"
|
CFLAGS="-g -Wall"
|
||||||
else
|
else
|
||||||
CFLAGS=
|
CFLAGS=
|
||||||
|
@ -212,8 +211,7 @@ AC_ARG_ENABLE(debug,
|
||||||
## **************
|
## **************
|
||||||
PAMDIR='$(prefix)/lib/security'
|
PAMDIR='$(prefix)/lib/security'
|
||||||
AC_ARG_WITH(pamdir,
|
AC_ARG_WITH(pamdir,
|
||||||
AC_HELP_STRING([--with-pamdir=DIR],
|
AS_HELP_STRING([--with-pamdir=DIR],[install PAM modiles in DIR (PREFIX/lib/security)]),
|
||||||
[install PAM modiles in DIR (PREFIX/lib/security)]),
|
|
||||||
[PAMDIR=$withval])
|
[PAMDIR=$withval])
|
||||||
AC_SUBST(PAMDIR)
|
AC_SUBST(PAMDIR)
|
||||||
|
|
||||||
|
@ -258,7 +256,7 @@ build_umotd=$build_umotd
|
||||||
build_groupmember=$build_groupmember
|
build_groupmember=$build_groupmember
|
||||||
build_innetgr=$build_innetgr])
|
build_innetgr=$build_innetgr])
|
||||||
|
|
||||||
AC_OUTPUT(Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
examples/Makefile
|
examples/Makefile
|
||||||
lib/Makefile
|
lib/Makefile
|
||||||
|
@ -270,4 +268,5 @@ AC_OUTPUT(Makefile
|
||||||
pam_umotd/Makefile
|
pam_umotd/Makefile
|
||||||
pam_groupmember/Makefile
|
pam_groupmember/Makefile
|
||||||
pam_innetgr/Makefile
|
pam_innetgr/Makefile
|
||||||
pamck/Makefile)
|
pamck/Makefile])
|
||||||
|
AC_OUTPUT
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|
||||||
|
|
||||||
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
|
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */
|
||||||
|
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|
||||||
|
|
||||||
#ifndef _MAILUTILS_MD5_H
|
#ifndef _MAILUTILS_MD5_H
|
||||||
#define _MAILUTILS_MD5_H 1
|
#define _MAILUTILS_MD5_H 1
|
||||||
|
|
|
@ -15,8 +15,7 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|
||||||
|
|
||||||
/* Written by Scott G. Miller
|
/* Written by Scott G. Miller
|
||||||
Credits:
|
Credits:
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|
||||||
|
|
||||||
#ifndef _MAILUTILS_SHA1_H
|
#ifndef _MAILUTILS_SHA1_H
|
||||||
# define _MAILUTILS_SHA1_H 1
|
# define _MAILUTILS_SHA1_H 1
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
Public License for more details.
|
Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
|
|
||||||
|
|
||||||
#include <graypam.h>
|
#include <graypam.h>
|
||||||
|
|
||||||
|
|
|
@ -306,7 +306,7 @@ parse_ldap_uri(const char *uri)
|
||||||
static void ldap_unbind(LDAP *ld);
|
static void ldap_unbind(LDAP *ld);
|
||||||
|
|
||||||
static LDAP *
|
static LDAP *
|
||||||
ldap_connect(struct gray_env *env)
|
ldaphome_connect(struct gray_env *env)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
char *ldapuri = NULL;
|
char *ldapuri = NULL;
|
||||||
|
@ -1579,7 +1579,7 @@ import_public_key(pam_handle_t *pamh, struct passwd *pw, struct gray_env *env)
|
||||||
if (!attr)
|
if (!attr)
|
||||||
attr = "sshPublicKey";
|
attr = "sshPublicKey";
|
||||||
|
|
||||||
ld = ldap_connect(env);
|
ld = ldaphome_connect(env);
|
||||||
if (!ld)
|
if (!ld)
|
||||||
return PAM_SERVICE_ERR;
|
return PAM_SERVICE_ERR;
|
||||||
if (ldap_bind(ld, env))
|
if (ldap_bind(ld, env))
|
||||||
|
|
|
@ -12,9 +12,7 @@
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
||||||
MA 02110-1301 USA */
|
|
||||||
|
|
||||||
#define debug_level gpam_sql_debug_level
|
#define debug_level gpam_sql_debug_level
|
||||||
#include <graypam.h>
|
#include <graypam.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue