Commit Graph

464 Commits

Author SHA1 Message Date
Thorsten Kukuk
964e18bfb0 Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------

2005-12-07  Thorsten Kukuk  <kukuk@suse.de>

        * modules/pam_mail/pam_mail.c: Modify assembling of output
        for easier translation.

        * po/de.po: Translate new pam_mail messages.
2005-12-07 17:09:18 +00:00
Thorsten Kukuk
a6a5869d8b Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------

Fix wrong format specifier (%s instead of %m)
2005-11-24 22:34:04 +00:00
Dmitry V. Levin
9866ec48c5 Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------
2005-11-24  Dmitry V. Levin  <ldv@altlinux.org>

	* config.h.in: Remove generated file.
	* .cvsignore: Add config.h.in.
2005-11-24 17:18:52 +00:00
Dmitry V. Levin
b3a154da21 Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------
2005-11-24  Dmitry V. Levin  <ldv@altlinux.org>

	* configure.in: Do not check for strerror.
	* libpam_misc/misc_conv.c (read_string): Replace strerror()
	call with %m specifier.
	* libpamc/pamc_converse.c (pamc_converse): Likewise.
	* modules/pam_echo/pam_echo.c (pam_echo): Likewise.
	* modules/pam_localuser/pam_localuser.c (pam_sm_authenticate):
	Likewise.
	* modules/pam_selinux/pam_selinux.c (security_label_tty):
	Likewise.
	(security_restorelabel_tty, security_label_tty): Append %m
	specifier where appropriate.
	* modules/pam_selinux/pam_selinux_check.c (main): Replace
	strerror() call with %m specifier.
	* modules/pam_unix/pam_unix_passwd.c (save_old_password,
	_update_passwd, _update_shadow): Likewise.
	* modules/pam_unix/support.c (_unix_run_helper_binary): Likewise.
	* modules/pam_unix/unix_chkpwd.c (_update_shadow): Likewise.
	* po/Linux-PAM.pot: Update strings from pam_selinux.
	* po/cs.po: Likewise.
	* po/de.po: Likewise.
	* po/es.po: Likewise.
	* po/fi.po: Likewise.
	* po/fr.po: Likewise.
	* po/hu.po: Likewise.
	* po/it.po: Likewise.
	* po/ja.po: Likewise.
	* po/nb.po: Likewise.
	* po/pa.po: Likewise.
	* po/pl.po: Likewise.
	* po/pt.po: Likewise.
	* po/pt_BR.po: Likewise.
	* po/zh_CN.po: Likewise.
	* po/zh_TW.po: Likewise.
2005-11-24 17:15:31 +00:00
Thorsten Kukuk
dc1ef1998c Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------

2005-11-23  Thorsten Kukuk  <kukuk@suse.de>

        * modules/pam_xauth/pam_xauth.c (pam_sm_open_session): Introduce
        new variable to fix compiler warning.

        * libpam/pam_modutil_getlogin.c (pam_modutil_getlogin): PAM_TTY
        don't need to start with /dev/.
2005-11-23 16:42:39 +00:00
Thorsten Kukuk
85defa52f2 Relevant BUGIDs: none
Purpose of commit: release

Commit summary:
---------------

Prepare for 0.99.2.0 release
2005-11-21 14:07:49 +00:00
Thorsten Kukuk
6cdec1ef8c Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------

Update NEWS file, checkin regenerated po files
2005-11-18 09:01:00 +00:00
Thorsten Kukuk
8da7a655dd Relevant BUGIDs:
Purpose of commit:

Commit summary:
---------------

submit missing files from last checkin
2005-11-18 08:59:56 +00:00
Thorsten Kukuk
2c8f29d463 Relevant BUGIDs: 534205
Purpose of commit: new feature

Commit summary:
---------------

2005-11-16  Thorsten Kukuk  <kukuk@thkukuk.de>

        * libpam/pam_handlers.c: Replace code for all dlopen variants with
        a generic wrapper.
        * libpam/pam_dynamic.c: Implement generic wrapper for dlopen.
        * libpam/pam_dynamic.h: Provide prototypes.
        For Mac OS X support [#534205]
2005-11-18 08:57:01 +00:00
Thorsten Kukuk
781bbbc5db Relevant BUGIDs: 604380
Purpose of commit: bugfix

Commit summary:
---------------

Fix compatibility with Solaris if compiled on Solaris:

2005-11-17  Thorsten Kukuk  <kukuk@thkukuk.de>

        * libpam/include/security/_pam_compat.h: Fix wrong #ifdef nesting.
        Redefine PAM_CHANGE_EXPIRED_AUTHTOK [#604380]
2005-11-17 08:48:46 +00:00
Tomas Mraz
2d243af6b8 Relevant BUGIDs: 562730, 435990
Purpose of commit: bugfix

Commit summary:
---------------
        * modules/pam_access/pam_access.c (pam_sm_acct_mgmt): Parse correctly
        full path tty name.
        * modules/pam_time/pam_time.c (pam_sm_acct_mgmt): Parse correctly
        full path tty name. Allow unset tty.
        (logic_member): Allow matching ':' in tty name.
        * modules/pam_group/pam_group.c (pam_sm_acct_mgmt): Parse correctly
        full path tty name. Allow unset tty.
        (logic_member): Allow matching ':' in tty name.

        * libpam_misc/misc_conv.c (read_string): Read only up to EOL if stdin
        is not terminal.
2005-11-09 10:17:00 +00:00
Thorsten Kukuk
6c22ab1b70 Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------

2005-11-07  Thorsten Kukuk  <kukuk@thkukuk.de>

        * modules/pam_unix/pam_unix_passwd.c (_unix_verify_shadow): Use
        correct variable names.


And adjust .cvsignore files for libtool generated files.
2005-11-07 20:09:42 +00:00
Steve Langasek
8f587b822f Relevant BUGIDs: Debian bugs #330458, #330852
Purpose of commit: bugfix

Commit summary:
---------------

don't treat a missing /etc/environment as a fatal error when attempting
to read it, and try to read this file by default; this restores the
behavior from Linux-PAM 0.76.
2005-11-06 12:50:43 +00:00
Tomas Mraz
ff4104776b Relevant BUGIDs: 1245888
Purpose of commit: bugfix

Commit summary:
---------------
        * modules/pam_unix/pam_unix_passwd.c (_unix_verify_shadow): Change the
        logic when comparing dates to handle corner cases better [#1245888].
2005-11-02 12:41:34 +00:00
Tomas Mraz
1f36364bf4 Relevant BUGIDs: 1224807
Purpose of commit: bugfix

Commit summary:
---------------
Fix a typo - strlen of a wrong variable.
2005-11-02 09:40:41 +00:00
Thorsten Kukuk
2946300d5e Relevant BUGIDs: 624214
Purpose of commit: bugfix

Commit summary:
---------------

2005-10-31  Thorsten Kukuk  <kukuk@suse.de>

        * modules/pam_filter/pam_filter.c: Use XCASE only if defined
        [#624214]
2005-11-02 08:58:16 +00:00
Thorsten Kukuk
0c44a58532 Relevant BUGIDs: 1197444
Purpose of commit: cleanup

Commit summary:
---------------

doc/man/pam.8: Fix wording for authentication chapter
2005-10-27 09:41:24 +00:00
Tomas Mraz
dba185605b Relevant BUGIDs: Red Hat bz 168180
Purpose of commit: bugfix

Commit summary:
---------------
2005-10-26  Tomas Mraz  <t8m@centrum.cz>

        * modules/pam_unix/pam_unix_acct.c (_unix_run_verify_binary),
        modules/pam_unix/pam_unix_passwd.c (_unix_run_shadow_binary),
        modules/pam_unix/support.c (_unix_run_shadow_binary_): Set real
        uid to 0 before executing the helper if SELinux is enabled.
        * modules/pam_unix/unix_chkpwd.c (main): Disable user check only
        if real uid is 0 (CVE-2005-2977). Log failed password check attempt.
2005-10-26 19:05:32 +00:00
Tomas Mraz
d9b712775c Relevant BUGIDs: Red Hat bz 171164
Purpose of commit: new feature

Commit summary:
---------------
2005-10-20  Tomas Mraz  <t8m@centrum.cz>

        * configure.in: Added check for xauth binary and --with-xauth option.
        * config.h.in: Added configurable PAM_PATH_XAUTH.
        * modules/pam_xauth/README,
        modules/pam_xauth/pam_xauth.8: Document where xauth is looked for.
        * modules/pam_xauth/pam_xauth.c (pam_sm_open_session): Implement
        searching xauth binary on multiple places.
        (run_coprocess): Don't use execvp as it can be a security risk.
2005-10-20 17:01:06 +00:00
Steve Langasek
593ea15559 Relevant BUGIDs: Debian bug #53653
Purpose of commit: cleanup

Commit summary:
---------------

Declare public header files extern "C" so that they are C++-safe.
2005-10-04 22:56:17 +00:00
Dmitry V. Levin
447b7fc84b 2005-10-02 Dmitry V. Levin <ldv@altlinux.org>
Steve Langasek  <vorlon@debian.org>

	Cleanup gratuitous use of strdup().
	Fix "missing argument" checks.

	* modules/pam_env/pam_env.c (_pam_parse): Add const qualifier
	to conffile and envfile arguments.  Do not use x_strdup() for
	conffile and envfile initialization.  Fix "missing argument"
	checks.
	(_parse_config_file): Take conffile argument of type "const char *"
	instead of "char **".  Do not free conffile.
	(_parse_env_file): Take env_file argument of type "const char *"
	instead of "char **".  Do not free env_file.
	(pam_sm_setcred): Add const qualifier to conf_file and env_file.
	Pass conf_file and env_file to _parse_config_file() and
	_parse_env_file() by value.
	(pam_sm_open_session): Likewise.

	* modules/pam_ftp/pam_ftp.c (_pam_parse): Add const qualifier to
	users argument.  Do not use x_strdup() for users initialization.
	(lookup):  Add const qualifier to list argument.
	(pam_sm_authenticate): Add const qualifier to users argument.

	* modules/pam_mail/pam_mail.c (_pam_parse): Add const qualifier
	to maildir argument.  Do not use x_strdup() for maildir
	initialization.  Fix "missing argument" check.
	(get_folder): Take path_mail argument of type "const char *"
	instead of "char **".  Do not free path_mail.
	(_do_mail): Add const qualifier to path_mail argument.
	Pass path_mail to get_folder() by value.

	* modules/pam_motd/pam_motd.c: Include <syslog.h>.
	(pam_sm_open_session): Add const qualifier to motd_path.
	Do not use x_strdup() for motd_path initialization.  Do not
	free motd_path.  Fix "missing argument" check.	Add "unknown
	option" warning.

	* modules/pam_userdb/pam_userdb.c (_pam_parse): Add const
	qualifier to database and cryptmode arguments.	Fix "missing
	argument" checks.
	(pam_sm_authenticate): Add const qualifier to database and cryptmode.
	(pam_sm_acct_mgmt): Likewise.
2005-10-04 11:35:18 +00:00
Steve Langasek
21ee1936c2 Relevant BUGIDs:
Purpose of commit: cleanup

Commit summary:
---------------

spelling fix in log message (s/acces/access/)
2005-10-02 11:49:27 +00:00
Steve Langasek
5d398d5149 Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------

Fix memory leak due to gratuitous use of strdup().
2005-09-30 09:09:51 +00:00
Thorsten Kukuk
e040af5792 Relevant BUGIDs: none
Purpose of commit:

Commit summary: bugfix
---------------

Move release date for 0.99.1.0
2005-09-27 14:04:07 +00:00
Thorsten Kukuk
d2a4173658 Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------

More .cvsignore fixes
2005-09-27 08:49:09 +00:00
Thorsten Kukuk
afa77d7d26 Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------

Install draft and rfc, fix make dist outside source dir.

2005-09-27  Thorsten Kukuk  <kukuk@thkukuk.de>

        * doc/specs/Makefile.am (install-data-local): Install
        rfc and draft.
        (all): Copy rfc if we build outside of source directory.
2005-09-27 08:45:57 +00:00
Thorsten Kukuk
0325d6ba8a Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------

Add more missing .cvsignore files to CVS
2005-09-27 08:40:38 +00:00
Thorsten Kukuk
42cf532022 Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------

commit forgotten .cvsignore files
2005-09-27 08:30:05 +00:00
Thorsten Kukuk
c8ed52a3f9 Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------

Remove missed file
2005-09-27 08:27:53 +00:00
Thorsten Kukuk
e22169c2c1 Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------

Remove files not containing translations and not distributed by us.
2005-09-27 06:20:36 +00:00
Thorsten Kukuk
a19c5ff65d Relevant BUGIDs: none
Purpose of commit: bugfix/cleanup

Commit summary:
---------------

Some cleanups for building out of tree and docu.

2005-09-27  Thorsten Kukuk  <kukuk@suse.de>

        * NEWS: Document removal of pam_radius.
        * autogen.sh: Make configure script executeable.

        * conv/pam_conv1/Makefile (EXTRA_DIST): Removed lex.yy.c
        (lex.yy.c): Fixed out of tree build.

        * conv/pam_conv1/pam_conv.y: Fix main prototype.

        * README: Adjust.
2005-09-27 06:16:10 +00:00
Tomas Mraz
e7a4b3ae9b Relevant BUGIDs:
Purpose of commit: cleanup

Commit summary:
---------------
2005-09-26  Tomas Mraz  <t8m@centrum.cz>

        * NEWS: Add a few missing entries from CHANGELOG.

        * AUTHORS: Fixed entries for Toady and me

        * Makefile.am (M4_FILES): Fixed out of tree build.
        * doc/specs/Makefile.am (EXTRA_DIST): Removed lex.yy.c
        (spec, lex.yy.c): Fixed out of tree build.

        * modules/pam_userdb/README: Document try_first_pass and
        use_first_pass options, remove use_authtok option.
2005-09-26 19:35:39 +00:00
Dmitry V. Levin
2768b9a8fb 2005-09-26 Dmitry V. Levin <ldv@altlinux.org>
* NEWS: Mention changes in pam_lastlog.
2005-09-26 17:29:02 +00:00
Thorsten Kukuk
928ecb9b3d Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------

2005-09-26  Thorsten Kukuk  <kukuk@suse.de>

        * NEWS: New file.
        * autogen.sh: Don't generate NEWS file.
        * CHANGELOG: Document it as obsolete.
2005-09-26 14:54:28 +00:00
Thorsten Kukuk
165cd7666e Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------

Mark missing strings for translation
2005-09-26 14:38:36 +00:00
Tomas Mraz
f0f9c44793 Relevant BUGIDs:
Purpose of commit: cleanup

Commit summary:
---------------
2005-09-26  Tomas Mraz  <t8m@centrum.cz>

        * modules/pam_unix/pam_unix_acct.c (_unix_run_verify_binary):
        _log_err() -> pam_syslog()
        (pam_sm_acct_mgmt): _log_err() -> pam_syslog(), fix warning.
        * modules/pam_unix/pam_unix_auth.c (pam_sm_authenticate):
        _log_err() -> pam_syslog()
        * modules/pam_unix/pam_unix_passwd.c: removed obsolete ifdef
        (getNISserver, _unix_run_shadow_binary, _update_passwd,
        _update_shadow, _do_setpass, _pam_unix_approve_pass,
        pam_sm_chauthtok): _log_err() -> pam_syslog()
        * modules/pam_unix/pam_unix_sess.c: removed obsolete ifdef
        (pam_sm_open_session, pam_sm_close_session):
        _log_err() -> pam_syslog()
        * modules/pam_unix/support.c (_log_err, converse): removed
        (_make_remark): use pam_prompt() instead of converse()
        (_set_ctrl, _cleanup_failures, _unix_run_helper_binary,
        _unix_verify_password, _unix_read_password):
        _log_err() -> pam_syslog()
        _cleanup(), _unix_cleanup(): Silence unused param warnings.
        (_cleanup_failures, _unix_verify_password, _unix_getpwnam,
        _unix_run_helper_binary): Silence incorrect type warnings.
        (_unix_read_password): Use multiple pam_prompt() and pam_info() calls
        instead of converse().
        * modules/pam_unix/support.h (_log_err): removed
        * modules/pam_unix/unix_chkpwd.c (_log_err): LOG_AUTH -> LOG_AUTHPRIV
2005-09-26 14:27:09 +00:00
Thorsten Kukuk
96eb2dc401 Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------

Fix spec generation and creating tar archive with automake:

        * configure.in: Add doc/specs/Makefile.
        * Makefile.am: Add releasedocs rule.
        * doc/Makefile.am: Add specs subdir, remove files from specs
        directory, add rfc86.0.txt to releasedocs.
        * doc/specs/Makefile.am: New file.
        * doc/specs/formatter/parse.y: move from here ...
        * doc/specs/parse.y: ... here.
        * doc/specs/formatter/parse.lex: move from here ...
        * doc/specs/parse.lex: ... here.
2005-09-26 12:49:52 +00:00
Tomas Mraz
a374119215 Relevant BUGIDs:
Purpose of commit: new feature

Commit summary:
---------------
Support for NULL tty for pam_access.
2005-09-23  Tomas Mraz  <t8m@centrum.cz>

        * modules/pam_access/pam_access.c (from_match): Support NULL from.
        (string_match): Support NULL string, add NONE keyword matching it.
        (pam_sm_acct_mgmt): Don't fail when ttyname returns NULL.
        * modules/pam_access/access.conf: NONE keyword description
        * modules/pam_access/README: NONE keyword description
2005-09-26 09:56:28 +00:00
Dmitry V. Levin
1d12d6d2cd Relevant BUGIDs: none
Purpose of commit: cleanup

Commit summary:
---------------
2005-09-22  Dmitry V. Levin  <ldv@altlinux.org>

	* modules/pam_xauth/pam_xauth.c: (check_acl, pam_sm_open_session,
	pam_sm_close_session): Strip redundant "pam_xauth: " prefix from
	text of log messages.
	(pam_sm_open_session): Replace sequence of malloc(), strcpy()
	and strcat() calls with asprintf().  Replace syslog() calls
	with pam_syslog().
2005-09-23 11:28:55 +00:00
Dmitry V. Levin
25a303a414 Relevant BUGIDs: none
Purpose of commit: bugfix

Commit summary:
---------------
2005-09-22  Dmitry V. Levin  <ldv@altlinux.org>

	* modules/pam_nologin/pam_nologin.c (parse_args): Use strncmp()
	instead of memcmp() for string comparison.
2005-09-22 22:16:02 +00:00
Dmitry V. Levin
3d162e058b 2005-09-21 Dmitry V. Levin <ldv@altlinux.org>
* po/Linux-PAM.pot: Update with new strings from pam_mail for
	translation.
	* po/cs.po: Likewise.
	* po/de.po: Likewise.
	* po/es.po: Likewise.
	* po/fi.po: Likewise.
	* po/fr.po: Likewise.
	* po/hu.po: Likewise.
	* po/it.po: Likewise.
	* po/ja.po: Likewise.
	* po/nb.po: Likewise.
	* po/pa.po: Likewise.
	* po/pl.po: Likewise.
	* po/pt.po: Likewise.
	* po/pt_BR.po: Likewise.
	* po/zh_CN.po: Likewise.
	* po/zh_TW.po: Likewise.
2005-09-22 21:48:50 +00:00
Dmitry V. Levin
78af3a9ba7 Relevant BUGIDs: none
Purpose of commit: bugfix, cleanup

Commit summary:
---------------
2005-09-21  Dmitry V. Levin  <ldv@altlinux.org>

	* modules/pam_mail/pam_mail.c: Include <errno.h>.
	Remove YOUR_MAIL_VERBOSE_FORMAT, YOUR_MAIL_STANDARD_FORMAT and
	NO_MAIL_STANDARD_FORMAT macros.
	(parse_args, get_folder): Cleanup error messages.
	(get_folder): Fix leak of the path_mail variable in case of
	pam_get_user() failure.  Cleanup memory management.
	(get_mail_status): Add pam_handle_t* argument.	Fix leaks of
	namelist variable.  Cleanup memory management.	Log memory
	allocation failures.  Remove 250-byte limit on Maildir pathname.
	(report_mail): Mark text messages for translation.
	(_do_mail): Cleanup memory management.	Pass pam_handle_t*
	to get_mail_status().
2005-09-22 21:43:32 +00:00
Dmitry V. Levin
384fd89fad Relevant BUGIDs: none
Purpose of commit: new feature

Commit summary:
---------------
2005-09-21  Dmitry V. Levin  <ldv@altlinux.org>

	* modules/pam_nologin/pam_nologin.c: Include <syslog.h>.
	(parse_args): Add pam_handle_t* argument.  Log unrecognized
	options.
	(perform_check): Log pam_get_user() and malloc() failures.
	(pam_sm_authenticate, pam_sm_setcred, pam_sm_acct_mgmt):
	Pass pam_handle_t* to parse_args().
2005-09-22 21:35:30 +00:00
Thorsten Kukuk
6ad2083dc3 Relevant BUGIDs: none
Purpose of commit: new feature

Commit summary:
---------------

Create a ChangeLog file for new checkins
2005-09-21 13:43:51 +00:00
Tomas Mraz
c01ac65a78 Relevant BUGIDs:
Purpose of commit: new feature

Commit summary:
---------------
Allow out of tree builds
2005-09-21 13:27:10 +00:00
Tomas Mraz
a12eb128f9 Relevant BUGIDs:
Purpose of commit: bugfix

Commit summary:
---------------
oops, forgot to remove backslash
2005-09-21 12:13:08 +00:00
Tomas Mraz
fc5ff19324 Relevant BUGIDs:
Purpose of commit: cleanup

Commit summary:
---------------
Remove pammodutil from include directories
2005-09-21 12:11:23 +00:00
Tomas Mraz
efe5feecf9 Relevant BUGIDs:
Purpose of commit: bugfix, new feature

Commit summary:
---------------
pam_lastlog: Cleanup, fix broken logic in pam_parse,
modify wtmp by default, nowtmp option switches that off (patch by ldv)
2005-09-21 10:54:50 +00:00
Tomas Mraz
be09d6354e Relevant BUGIDs:
Purpose of commit: new feature

Commit summary:
---------------
Moved functions from pammodutil to libpam.
2005-09-21 10:00:58 +00:00
Thorsten Kukuk
627a040189 Update with new strings for translation 2005-09-20 17:10:26 +00:00