History log of /freebsd-current/lib/libpam/modules/pam_radius/pam_radius.c
Revision Date Author Comments
# a2f733ab 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

lib: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 716eff47 16-May-2018 Dag-Erling Smørgrav <des@FreeBSD.org>

Forward Reply-Message attributes to the user, unless suppressed by the
new no_reply_message option.

MFC after: 1 week
Sponsored by: The University of Oslo


# 5e53a4f9 25-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

lib: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.


# f8b83996 16-Jan-2015 Dag-Erling Smørgrav <des@FreeBSD.org>

If PAM_RHOST is non-NULL, pass it in the Calling-Station-ID attribute of
the RADIUS access request.

MFC after: 1 week


# a612142b 27-Sep-2012 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove unnecessary #include.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# d154a420 20-Jan-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>

Send not only Access Request, but also Access Challenge with defined
NAS-Identifier and NAS-IP-Address.

Reviewed by: bz
MFC after: 1 month


# 30d0a60a 13-Jun-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't use a cast as an lvalue.
Add a redundant test to make it painfully obvious to the reader that this
code does not support IPv6.

Approved by: re (dwhite)
MFC after: 1 week


# 27585359 24-Jun-2004 Alexander Kabaev <kan@FreeBSD.org>

Revert the last change. There are more 64bit platforms than amd64, and
they break due to diferent alignment restrictions.


# 0cb04d0b 24-Jun-2004 Alexander Kabaev <kan@FreeBSD.org>

Remove the use of cast as lvalue.


# 91e93869 11-Dec-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix strict aliasing breakage in PAM modules (except pam_krb5, which needs
more work than the others). This should make most modules build with -O2.


# cd28f89c 12-Nov-2003 Maxim Sobolev <sobomax@FreeBSD.org>

Fix on sparc64.

Reported by: rwatson/tinderbox
MFC after: 2 weeks


# f142677b 12-Nov-2003 Maxim Sobolev <sobomax@FreeBSD.org>

Add a new configuration variable - nas_ipaddr, which if set allows to
set NAS-IP-Address attribute in requests generated by the pam_radius
module. This attribute is mandatory for some Radius servers out there.

Reviewed by: des
MFC after: 2 weeks


# 3a256117 21-Jul-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Revert previous commit after fixing libpam.


# 015d0cd6 15-Jul-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Add a __DECONST() to unbreak the build.


# 4d6991c6 31-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Update copyright dates.


# 545aa471 31-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Remove all instances of pam_std_option()


# a1d214e8 28-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Allow the admin to specify a different NAS identifier than the hostname.

Submitted by: Boris Kovalenko <boris@ntmk.ru>


# 24fe7ba0 12-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Major cleanup:

- add __unused where appropriate
- PAM_RETURN -> return since OpenPAM already logs the return value.
- make PAM_LOG use openpam_log()
- make PAM_VERBOSE_ERROR use openpam_get_option() and check flags
for PAM_SILENT
- remove dummy functions since OpenPAM handles missing service
functions
- fix various warnings

Sponsored by: DARPA, NAI Labs


# 111ccd25 06-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Aggressive cleanup of warnings + authtok-related code in preparation for
PAMifying passwd(1).

Sponsored by: DARPA, NAI Labs.


# f03a4b81 14-Mar-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

NAI DBA update.


# 519b6a4c 05-Mar-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Switch to OpenPAM. Bump library version. Modules are now versioned, so
applications linked with Linux-PAM will still work.
Remove pam_get_pass(); OpenPAM has pam_get_authtok().
Remove pam_prompt(); OpenPAM has pam_{,v}{error,info,prompt}().
Remove pam_set_item(3) man page as OpenPAM has its own.

Sponsored by: DARPA, NAI Labs


# 8c66575d 04-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

#include cleanup.

Sponsored by: DARPA, NAI Labs


# c2065008 24-Jan-2002 Mark Murray <markm@FreeBSD.org>

WARNS=4 fixes. Protect with NO_WERROR for the modules that have
warnings that are hard to fix or that I've been asked to leave alone.


# 8d3978c1 05-Dec-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Add dummy functions for all module types. These dummies return PAM_IGNORE
rather than PAM_SUCCESS, so you'll get a failure if you list dummies but
no real modules for a particular module chain.

Sponsored by: DARPA, NAI Labs


# ceaf33f5 30-Sep-2001 Matthew Dillon <dillon@FreeBSD.org>

Add __FBSDID()s to libpam


# 65550d9b 10-Aug-2001 Mark Murray <markm@FreeBSD.org>

Verbose logging, overridable verbose error reporting.


# 1642eb1a 09-Jul-2001 Mark Murray <markm@FreeBSD.org>

Clean up (and in some cases write) the PAM mudules, using
o The new options-processing API
o The new DEBUG-logging API

Add man(1) pages for ALL modules. MDOC-Police welcome
to check this.

Audit, clean up while I'm here.


# 9294327d 20-Jan-1999 John Polstra <jdp@FreeBSD.org>

Make it possible to use PAM in statically-linked applications.


# 9a10bb17 17-Nov-1998 John Polstra <jdp@FreeBSD.org>

Build structure for contribified Linux-PAM, plus some home-grown
modules for FreeBSD's standard authentication methods. Although
the Linux-PAM modules are present in the contrib tree, we don't
use any of them.

The main library "libpam" is composed of sources taken from three
places. First are the standard Linux-PAM libpam sources from the
contrib tree. Second are the Linux-PAM "libpam_misc" sources, also
from the contrib tree. In Linux these form a separate library.
But as Mike Smith pointed out to me, that seems pointless, so I
have combined them into the libpam library. Third are some additional
sources from the "src/lib/libpam" tree with some common functions
that make it easier to write modules. Those I wrote myself.

This work has been donated to FreeBSD by Juniper Networks, Inc.