Sergey Poznyakoff
1a80b647d6
Revamp build system. Add pam_ldaphome module.
...
* configure.ac: Test for ldap.
(AC_OUTPUT): Create pam_ldaphome/Makefile.
* acinclude.m4 (PM_ENABLE): Declare PAM_COND_<item>
conditional in addition to BUILD_PAM_<item> substitution
variable.
* Makefile.am (SUBDIRS): Include most modules via
conditionally defined Makefile variables.
* lib/graypam.h (gray_env): New struct.
(gray_env_get,gray_env_free,gray_env_read)
(gray_boolean_true_p): New protos.
* lib/env.c: New file.
* lib/Makefile.am (libgraypam_la_SOURCES): Add env.c
* pam_fshadow/Makefile.am: Remove BUILD_PAM_FSHADOW
substitution.
* pam_regex/Makefile.am: Remove BUILD_PAM_REGEX
substitution.
* pam_sql/pam_sql.c (free_config, boolean_true_p)
(read_config): Remove. Use gray_env_* functions
instead. All uses updated.
* pam_regex/pam_regex.c: Fix typo.
* pam_ldaphome/Makefile.am: New file.
git-svn-id: file:///svnroot/pam-modules/trunk@118 56984be4-0537-0410-a56c-fcb268c96130
2012-05-13 09:48:57 +00:00
Sergey Poznyakoff
9a1b32df22
Various bugfixes.
...
* pam_fshadow/pam_fshadow.c (pam_sm_authenticate): Fix
erroneous conditional, which allowed for logins with
arbitrary passwords if `nopasswd' option was given.
* lib/graypam.h (gray_free_transform_expr): New proto.
* lib/transform.c (transform) <has_regex>: New member.
(free_transform,free_segment): New statics.
(gray_free_transform_expr): New function.
* pam_regex/pam_regex.c (pam_sm_authenticate): Free slist and
transform expression.
git-svn-id: file:///svnroot/pam-modules/trunk@116 56984be4-0537-0410-a56c-fcb268c96130
2011-08-31 07:34:59 +00:00
Sergey Poznyakoff
a8eb15d394
Update copyright years
...
git-svn-id: file:///svnroot/pam-modules/trunk@113 56984be4-0537-0410-a56c-fcb268c96130
2011-04-08 08:54:48 +00:00
Sergey Poznyakoff
8e3f1518fc
Update copyright years.
...
Happy GNU Year!
git-svn-id: file:///svnroot/pam-modules/trunk@110 56984be4-0537-0410-a56c-fcb268c96130
2010-01-02 15:12:34 +00:00
Sergey Poznyakoff
27cbbfe1b7
Avoid gcc warnings
...
git-svn-id: file:///svnroot/pam-modules/trunk@106 56984be4-0537-0410-a56c-fcb268c96130
2009-02-27 15:30:15 +00:00
Sergey Poznyakoff
6f50f8c380
Documentation checking framework:
...
* doc/macros.texi, doc/check-docs.sh, doc/mastermenu.el,
doc/untabify.el, doc/rendition.texi: New files.
* pam_regex/pam_regex.c: Remove useless use_authtok option.
* pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c,
pam_sql/pam_sql.c: Pacify `make check-sql-config' in doc.
* doc/Makefile.am: Add check-* rules.
* doc/pam-modules.texi: Update.
git-svn-id: file:///svnroot/pam-modules/trunk@92 56984be4-0537-0410-a56c-fcb268c96130
2008-03-19 20:56:26 +00:00
Sergey Poznyakoff
d3b8bcfd1f
* pam_fshadow/pam_fshadow.c, pam_sql/pam_mysql.c,
...
pam_sql/pam_sql.c, pam_regex/pam_regex.c: Ensure passwords might
get divulged only at debugging level 100.
git-svn-id: file:///svnroot/pam-modules/trunk@87 56984be4-0537-0410-a56c-fcb268c96130
2008-03-16 22:12:43 +00:00
Sergey Poznyakoff
7345ac7561
* pam_regex/pam_regex.c (pam_opt): Fix a typo: rename "user_name"
...
option to "user".
(pam_sm_authenticate): Bugfix
git-svn-id: file:///svnroot/pam-modules/trunk@85 56984be4-0537-0410-a56c-fcb268c96130
2008-03-15 12:39:50 +00:00
Sergey Poznyakoff
0b547268bf
* lib/graypam.h: Minor change.
...
* pam_sql/pam_pgsql.c (verify_user_pass): port is optional.
Fix erroneous argument to PQsetdbLogin.
* pam_sql/pam_sql.c (pam_opt): Bugfix.
git-svn-id: file:///svnroot/pam-modules/trunk@69 56984be4-0537-0410-a56c-fcb268c96130
2008-03-14 14:42:56 +00:00
Sergey Poznyakoff
1128870a98
* lib/parseopt.c: New file.
...
* lib/Makefile.am (libgraypam_la_SOURCES): Add parseopt.c
* lib/graypam.h (gray_parseopt, gray_wait_debug_fun): New
functions
(CNTL_DEBUG_LEV, CNTL_SET_DEBUG_LEV): Removed.
* lib/log.c (gray_wait_debug): New functions.
* pam_fshadow/pam_fshadow.c, pam_sql/pam_sql.c,
pam_regex/pam_regex.c, pam_log/pam_log.c: Use gray_parseopt for
command line parsing.
git-svn-id: file:///svnroot/pam-modules/trunk@67 56984be4-0537-0410-a56c-fcb268c96130
2008-03-14 12:50:10 +00:00
Sergey Poznyakoff
8600d3bc0e
(pam_sm_authenticate): Remove unnecessary variable rmatch
...
git-svn-id: file:///svnroot/pam-modules/trunk@66 56984be4-0537-0410-a56c-fcb268c96130
2008-03-13 14:07:03 +00:00
Sergey Poznyakoff
222d4ff807
* configure.ac (PAM_COMMON_INCLUDES): Add -I${top_srcdir}/lib.
...
(AC_OUTPUT): Add lib/Makefile.
* doc/pam-modules.texi: Document `transform' option.
* Make.rules: New file.
* lib/mem.c, lib/slist.c, lib/log.c, lib/converse.c,
lib/graypam.h, lib/Makefile.am, lib/transform.c.
* pam_regex/pam_regex.c: Implement user name transformations.
* pam_fshadow/Makefile.am, pam_sql/Makefile.am:
Add ../lib/libgraypam.la to LDADD
* pam_fshadow/pam_fshadow.c, pam_sql/pam_mysql.c,
pam_sql/pam_pgsql.c, pam_sql/pam_sql.c: Use functions from ../lib.
git-svn-id: file:///svnroot/pam-modules/trunk@63 56984be4-0537-0410-a56c-fcb268c96130
2008-03-13 13:53:32 +00:00
Sergey Poznyakoff
1c004f2fe6
* pam_fshadow/pam_fshadow.c: Include config.h and time.h
...
* pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c, pam_sql/pam_sql.c: Use
_pam_log for diagnostics.
* pam_regex/pam_regex.c (pam_sm_authenticate): Remove unused variable.
* configure.ac: New option --enable-debug
* common.c (wait_debug): Bugfix
* pam_log/pam_log.c: Include ctype.h
(parse_priority): Change return type.
* pam_fshadow/Makefile.am, pam_log/Makefile.am,
pam_regex/Makefile.am, pam_sql/Makefile.am: Use CPPFLAGS in cc rules.
git-svn-id: file:///svnroot/pam-modules/trunk@58 56984be4-0537-0410-a56c-fcb268c96130
2007-08-14 08:50:50 +00:00
Sergey Poznyakoff
21565bb98c
Relicense under GPLv3.
...
git-svn-id: file:///svnroot/pam-modules/trunk@50 56984be4-0537-0410-a56c-fcb268c96130
2007-08-06 13:26:32 +00:00
Sergey Poznyakoff
93e90e26b7
(make_str): Moved to ../common.c
...
git-svn-id: file:///svnroot/pam-modules/trunk@46 56984be4-0537-0410-a56c-fcb268c96130
2007-08-05 15:00:20 +00:00
Sergey Poznyakoff
702b6cce44
Update
...
git-svn-id: file:///svnroot/pam-modules/trunk@37 56984be4-0537-0410-a56c-fcb268c96130
2006-09-06 13:08:14 +00:00
Sergey Poznyakoff
bd863c9bbd
Include <common.c>
...
git-svn-id: file:///svnroot/pam-modules/trunk@30 56984be4-0537-0410-a56c-fcb268c96130
2006-09-05 21:34:52 +00:00
Sergey Poznyakoff
7566fd5018
New option 'user=[arg]'
...
git-svn-id: file:///svnroot/pam-modules/trunk@24 56984be4-0537-0410-a56c-fcb268c96130
2006-09-04 19:23:16 +00:00
Sergey Poznyakoff
cf0527845d
Use stdarg.h
...
(regex): Made const
git-svn-id: file:///svnroot/pam-modules/trunk@21 56984be4-0537-0410-a56c-fcb268c96130
2005-08-18 07:11:00 +00:00
Sergey Poznyakoff
7aeea82338
Updated copyright statement
...
git-svn-id: file:///svnroot/pam-modules/trunk@17 56984be4-0537-0410-a56c-fcb268c96130
2005-08-18 06:26:25 +00:00
Sergey Poznyakoff
81ca942564
Initial revision
...
git-svn-id: file:///svnroot/pam-modules/trunk@2 56984be4-0537-0410-a56c-fcb268c96130
2004-02-09 14:51:48 +00:00