Commit graph

12 commits

Author SHA1 Message Date
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