diff options
Diffstat (limited to 'modules/pam_permit')
-rw-r--r-- | modules/pam_permit/.cvsignore | 6 | ||||
-rw-r--r-- | modules/pam_permit/Makefile.am | 31 | ||||
-rw-r--r-- | modules/pam_permit/README | 30 | ||||
-rw-r--r-- | modules/pam_permit/README.xml | 41 | ||||
-rw-r--r-- | modules/pam_permit/pam_permit.8 | 62 | ||||
-rw-r--r-- | modules/pam_permit/pam_permit.8.xml | 105 | ||||
-rw-r--r-- | modules/pam_permit/pam_permit.c | 116 | ||||
-rwxr-xr-x | modules/pam_permit/tst-pam_permit | 2 |
8 files changed, 0 insertions, 393 deletions
diff --git a/modules/pam_permit/.cvsignore b/modules/pam_permit/.cvsignore deleted file mode 100644 index 9fb98574..00000000 --- a/modules/pam_permit/.cvsignore +++ /dev/null @@ -1,6 +0,0 @@ -*.la -*.lo -.deps -.libs -Makefile -Makefile.in diff --git a/modules/pam_permit/Makefile.am b/modules/pam_permit/Makefile.am deleted file mode 100644 index 76e24472..00000000 --- a/modules/pam_permit/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -# -# Copyright (c) 2005, 2006 Thorsten Kukuk <kukuk@suse.de> -# - -CLEANFILES = *~ - -EXTRA_DIST = README $(MANS) $(XMLS) tst-pam_permit - -man_MANS = pam_permit.8 -XMLS = README.xml pam_permit.8.xml - -TESTS = tst-pam_permit - -securelibdir = $(SECUREDIR) -secureconfdir = $(SCONFIGDIR) - -AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include -AM_LDFLAGS = -no-undefined -avoid-version -module \ - -L$(top_builddir)/libpam -lpam -if HAVE_VERSIONING - AM_LDFLAGS += -Wl,--version-script=$(srcdir)/../modules.map -endif - -securelib_LTLIBRARIES = pam_permit.la - -if ENABLE_REGENERATE_MAN -noinst_DATA = README -README: pam_permit.8.xml --include $(top_srcdir)/Make.xml.rules -endif - diff --git a/modules/pam_permit/README b/modules/pam_permit/README deleted file mode 100644 index e09ec9cf..00000000 --- a/modules/pam_permit/README +++ /dev/null @@ -1,30 +0,0 @@ -pam_permit — The promiscuous module - -━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - -DESCRIPTION - -pam_permit is a PAM module that always permit access. It does nothing else. - -In the case of authentication, the user's name will be set to nobody if the -application didn't set one. Many applications and PAM modules become confused -if this name is unknown. - -This module is very dangerous. It should be used with extreme caution. - -OPTIONS - -This module does not recognice any options. - -EXAMPLES - -Add this line to your other login entries to disable account management, but -continue to permit users to log in. - -account required pam_permit.so - - -AUTHOR - -pam_permit was written by Andrew G. Morgan, <morgan@kernel.org>. - diff --git a/modules/pam_permit/README.xml b/modules/pam_permit/README.xml deleted file mode 100644 index acb38b51..00000000 --- a/modules/pam_permit/README.xml +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding='UTF-8'?> -<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" -"http://www.docbook.org/xml/4.3/docbookx.dtd" -[ -<!-- -<!ENTITY pamaccess SYSTEM "pam_permit.8.xml"> ---> -]> - -<article> - - <articleinfo> - - <title> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="pam_permit.8.xml" xpointer='xpointer(//refnamediv[@id = "pam_permit-name"]/*)'/> - </title> - - </articleinfo> - - <section> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="pam_permit.8.xml" xpointer='xpointer(//refsect1[@id = "pam_permit-description"]/*)'/> - </section> - - <section> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="pam_permit.8.xml" xpointer='xpointer(//refsect1[@id = "pam_permit-options"]/*)'/> - </section> - - <section> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="pam_permit.8.xml" xpointer='xpointer(//refsect1[@id = "pam_permit-examples"]/*)'/> - </section> - - <section> - <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="pam_permit.8.xml" xpointer='xpointer(//refsect1[@id = "pam_permit-author"]/*)'/> - </section> - -</article> diff --git a/modules/pam_permit/pam_permit.8 b/modules/pam_permit/pam_permit.8 deleted file mode 100644 index ce3c3290..00000000 --- a/modules/pam_permit/pam_permit.8 +++ /dev/null @@ -1,62 +0,0 @@ -.\" Title: pam_permit -.\" Author: -.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/> -.\" Date: 06/04/2006 -.\" Manual: Linux\-PAM Manual -.\" Source: Linux\-PAM Manual -.\" -.TH "PAM_PERMIT" "8" "06/04/2006" "Linux\-PAM Manual" "Linux\-PAM Manual" -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.SH "NAME" -pam_permit \- The promiscuous module -.SH "SYNOPSIS" -.HP 14 -\fBpam_permit.so\fR -.SH "DESCRIPTION" -.PP -pam_permit is a PAM module that always permit access. It does nothing else. -.PP -In the case of authentication, the user's name will be set to -\fInobody\fR -if the application didn't set one. Many applications and PAM modules become confused if this name is unknown. -.PP -This module is very dangerous. It should be used with extreme caution. -.SH "OPTIONS" -.PP -This module does not recognice any options. -.SH "MODULE SERVICES PROVIDED" -.PP -The services -\fBauth\fR, -\fBaccount\fR, -\fBpassword\fR -and -\fBsession\fR -are supported. -.SH "RETURN VALUES" -.TP 3n -PAM_SUCCESS -This module always returns this value. -.SH "EXAMPLES" -.PP -Add this line to your other login entries to disable account management, but continue to permit users to log in. -.sp -.RS 3n -.nf -account required pam_permit.so - -.fi -.RE -.sp -.SH "SEE ALSO" -.PP - -\fBpam.conf\fR(5), -\fBpam.d\fR(8), -\fBpam\fR(8) -.SH "AUTHOR" -.PP -pam_permit was written by Andrew G. Morgan, <morgan@kernel.org>. diff --git a/modules/pam_permit/pam_permit.8.xml b/modules/pam_permit/pam_permit.8.xml deleted file mode 100644 index 3992f43f..00000000 --- a/modules/pam_permit/pam_permit.8.xml +++ /dev/null @@ -1,105 +0,0 @@ -<?xml version="1.0" encoding='UTF-8'?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" - "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> - -<refentry id="pam_permit"> - - <refmeta> - <refentrytitle>pam_permit</refentrytitle> - <manvolnum>8</manvolnum> - <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo> - </refmeta> - - <refnamediv id="pam_permit-name"> - <refname>pam_permit</refname> - <refpurpose>The promiscuous module</refpurpose> - </refnamediv> - - <refsynopsisdiv> - <cmdsynopsis id="pam_permit-cmdsynopsis"> - <command>pam_permit.so</command> - </cmdsynopsis> - </refsynopsisdiv> - - <refsect1 id="pam_permit-description"> - - <title>DESCRIPTION</title> - - <para> - pam_permit is a PAM module that always permit access. It does - nothing else. - </para> - <para> - In the case of authentication, the user's name will be set to - <emphasis>nobody</emphasis> if the application didn't set one. - Many applications and PAM modules become confused if this name - is unknown. - </para> - <para> - This module is very dangerous. It should be used with extreme - caution. - </para> - </refsect1> - - <refsect1 id="pam_permit-options"> - - <title>OPTIONS</title> - <para> This module does not recognice any options.</para> - </refsect1> - - <refsect1 id="pam_permit-services"> - <title>MODULE SERVICES PROVIDED</title> - <para> - The services <option>auth</option>, <option>account</option>, - <option>password</option> and <option>session</option> are supported. - </para> - </refsect1> - - <refsect1 id='pam_permit-return_values'> - <title>RETURN VALUES</title> - <variablelist> - <varlistentry> - <term>PAM_SUCCESS</term> - <listitem> - <para> - This module always returns this value. - </para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - - <refsect1 id='pam_permit-examples'> - <title>EXAMPLES</title> - <para> - Add this line to your other login entries to disable account - management, but continue to permit users to log in. - <programlisting> -account required pam_permit.so - </programlisting> - </para> - </refsect1> - - <refsect1 id='pam_permit-see_also'> - <title>SEE ALSO</title> - <para> - <citerefentry> - <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum> - </citerefentry>, - <citerefentry> - <refentrytitle>pam.d</refentrytitle><manvolnum>8</manvolnum> - </citerefentry>, - <citerefentry> - <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum> - </citerefentry> - </para> - </refsect1> - - <refsect1 id='pam_permit-author'> - <title>AUTHOR</title> - <para> - pam_permit was written by Andrew G. Morgan, <morgan@kernel.org>. - </para> - </refsect1> - -</refentry> diff --git a/modules/pam_permit/pam_permit.c b/modules/pam_permit/pam_permit.c deleted file mode 100644 index e4539b03..00000000 --- a/modules/pam_permit/pam_permit.c +++ /dev/null @@ -1,116 +0,0 @@ -/* pam_permit module */ - -/* - * $Id$ - * - * Written by Andrew Morgan <morgan@parc.power.net> 1996/3/11 - * - */ - -#include "config.h" - -#define DEFAULT_USER "nobody" - -#include <stdio.h> - -/* - * here, we make definitions for the externally accessible functions - * in this file (these definitions are required for static modules - * but strongly encouraged generally) they are used to instruct the - * modules include file to define their prototypes. - */ - -#define PAM_SM_AUTH -#define PAM_SM_ACCOUNT -#define PAM_SM_SESSION -#define PAM_SM_PASSWORD - -#include <security/pam_modules.h> -#include <security/_pam_macros.h> - -/* --- authentication management functions --- */ - -PAM_EXTERN int -pam_sm_authenticate(pam_handle_t *pamh, int flags UNUSED, - int argc UNUSED, const char **argv UNUSED) -{ - int retval; - const char *user=NULL; - - /* - * authentication requires we know who the user wants to be - */ - retval = pam_get_user(pamh, &user, NULL); - if (retval != PAM_SUCCESS) { - D(("get user returned error: %s", pam_strerror(pamh,retval))); - return retval; - } - if (user == NULL || *user == '\0') { - D(("username not known")); - retval = pam_set_item(pamh, PAM_USER, (const void *) DEFAULT_USER); - if (retval != PAM_SUCCESS) - return PAM_USER_UNKNOWN; - } - user = NULL; /* clean up */ - - return PAM_SUCCESS; -} - -PAM_EXTERN int -pam_sm_setcred(pam_handle_t *pamh UNUSED, int flags UNUSED, - int argc UNUSED, const char **argv UNUSED) -{ - return PAM_SUCCESS; -} - -/* --- account management functions --- */ - -PAM_EXTERN int -pam_sm_acct_mgmt(pam_handle_t *pamh UNUSED, int flags UNUSED, - int argc UNUSED, const char **argv UNUSED) -{ - return PAM_SUCCESS; -} - -/* --- password management --- */ - -PAM_EXTERN int -pam_sm_chauthtok(pam_handle_t *pamh UNUSED, int flags UNUSED, - int argc UNUSED, const char **argv UNUSED) -{ - return PAM_SUCCESS; -} - -/* --- session management --- */ - -PAM_EXTERN int -pam_sm_open_session(pam_handle_t *pamh UNUSED, int flags UNUSED, - int argc UNUSED, const char **argv UNUSED) -{ - return PAM_SUCCESS; -} - -PAM_EXTERN int -pam_sm_close_session(pam_handle_t *pamh UNUSED, int flags UNUSED, - int argc UNUSED, const char **argv UNUSED) -{ - return PAM_SUCCESS; -} - -/* end of module definition */ - -#ifdef PAM_STATIC - -/* static module data */ - -struct pam_module _pam_permit_modstruct = { - "pam_permit", - pam_sm_authenticate, - pam_sm_setcred, - pam_sm_acct_mgmt, - pam_sm_open_session, - pam_sm_close_session, - pam_sm_chauthtok -}; - -#endif diff --git a/modules/pam_permit/tst-pam_permit b/modules/pam_permit/tst-pam_permit deleted file mode 100755 index 8adb427f..00000000 --- a/modules/pam_permit/tst-pam_permit +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -../../tests/tst-dlopen .libs/pam_permit.so |