Commit graph

16 commits

Author SHA1 Message Date
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
aaf0e43331 Rewrite Makefile.am's in a clearer and simpler way
* configure.ac: Require libtool 2.2.5a
* Make.rules (.c.lo, .lo.la): Remove
(AM_LDFLAGS, INCLUDES, LIBS): New assignments.
* pam_sql/Makefile.am, pam_fshadow/Makefile.am,
pam_sql/Makefile.am, pam_regex/Makefile.am,
pam_log/Makefile.am: Rewrite.
* pam_sql/pam_sql.h, pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c.
pam_sql/pam_sql.c: Rewrite.
* pam_sql/sha1.h, pam_sql/md5.c, pam_sql/md5.h, pam_sql/sha1.c
* pam_fshadow/pam_fshadow.c: New option [no]shadow
* doc/pam-modules.texi: Update.

* lib/graypam.h (gray_trim_ws): New proto
* lib/strutil.c: New file.
* lib/Makefile.am: Add strutil.c


git-svn-id: file:///svnroot/pam-modules/trunk@105 56984be4-0537-0410-a56c-fcb268c96130
2009-02-27 14:54:58 +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
06aaf68ec3 * configure.ac: Check for pam libraries and header files.
* pam_sql/pam_mysql.c (mysql_setenv): Protect by #ifdef
HAVE_PAM_MISC_SETENV.  Prevent coredumps on NULL values.
* pam_sql/pam_pgsql.c (pgsql_setenv): Likewise.
* pam_sql/Makefile.am (pam_mysql_la_LDADD,pam_pgsql_la_LDADD): Add
@PAM_MISC@.
* pam_sql/pam_sql.c (read_config): Read lines of arbitrary length.




git-svn-id: file:///svnroot/pam-modules/trunk@90 56984be4-0537-0410-a56c-fcb268c96130
2008-03-19 09:50:00 +00:00
Sergey Poznyakoff
80aafa9dcf * pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c: Implement `setenv'
method.
* pam_sql/pam_sql.c, pam_fshadow/pam_fshadow (_pam_get_password):
Set PAM_AUTHTOK.


git-svn-id: file:///svnroot/pam-modules/trunk@89 56984be4-0537-0410-a56c-fcb268c96130
2008-03-18 22:32:57 +00:00
Sergey Poznyakoff
f5f42d1c7b Add session management to pam_sql.
* NEWS, configure.ac: Updated. Set version to 1.3.90.

* lib/escape.c lib/vartab.c: New files.
* lib/graypam.h (gray_expand_argv)
(gray_expand_string, gray_escape_string): New functions.
(struct keyword): New declaration.
(gray_find_keyword): New function.
* lib/Makefile.am (libgraypam_la_SOURCES): Add vartab.c and
escape.c.

* pam_log/pam_log.c: Use gray_find_keyword and gray_expand_argv.

* pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c (verify_user_pass):
Change signature.
(sql_acct): New function.
* pam_sql/pam_sql.c (verify_user_pass): Change signature.
(_pam_parse): Initialize globals.
(free_config): Reset config_env to NULL.
(read_config): Set config_env to NULL.
(get_query,get_query2): New functions.
(pam_sm_authenticate): Call gray_pam_init, update call to
verify_user_pass.
(sql_session_mgmt,pam_sm_open_session,pam_sm_close_session): New
functions. 


git-svn-id: file:///svnroot/pam-modules/trunk@86 56984be4-0537-0410-a56c-fcb268c96130
2008-03-16 22:02:25 +00:00
Sergey Poznyakoff
3c4a95de06 Bugfixes
git-svn-id: file:///svnroot/pam-modules/trunk@79 56984be4-0537-0410-a56c-fcb268c96130
2008-03-15 09:09:14 +00:00
Sergey Poznyakoff
9e2dcb7eca Initial framework for LDAP-style password hashes.
* pam_sql/pam_mysql.c, pam_sql/pam_pgsql.c: Call
gray_check_ldap_pass if configuration variable allow-ldap-pass is
set.
* lib/graypam.h (gray_base64_decode, gray_check_ldap_pass): New
prototypes.
* lib/Makefile.am (libgraypam_la_SOURCES): Add new files.
* lib/sha1.h, lib/base64.c, lib/md5.c, lib/ldappass.c, lib/md5.h,
lib/sha1.c: New files.


git-svn-id: file:///svnroot/pam-modules/trunk@77 56984be4-0537-0410-a56c-fcb268c96130
2008-03-15 07:39:01 +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
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
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
c2e4becb13 (sql_expand_query): Bugfix
git-svn-id: file:///svnroot/pam-modules/trunk@36 56984be4-0537-0410-a56c-fcb268c96130
2006-09-06 13:06:29 +00:00
Sergey Poznyakoff
8518050136 *** empty log message ***
git-svn-id: file:///svnroot/pam-modules/trunk@31 56984be4-0537-0410-a56c-fcb268c96130
2006-09-05 21:36:24 +00:00