diff options
Diffstat (limited to 'modules/pam_deny')
-rw-r--r-- | modules/pam_deny/pam_deny.8 | 37 | ||||
-rw-r--r-- | modules/pam_deny/pam_deny.c | 25 |
2 files changed, 62 insertions, 0 deletions
diff --git a/modules/pam_deny/pam_deny.8 b/modules/pam_deny/pam_deny.8 new file mode 100644 index 0000000..b125866 --- /dev/null +++ b/modules/pam_deny/pam_deny.8 @@ -0,0 +1,37 @@ +.\" OpenPAM's pam_deny man page +.\" Contact me ( mellos@ceid.upatras.gr ) for any corrections or omissions. + +.TH PAM_DENY 8 "September 2008" "OpenPAM modules" "OpenPAM modules" +.SH NAME +pam_deny - The `Nobody is welcome` PAM module +.SH SYNOPSIS +.B pam_deny.so [\.\.\.] +.SH DESCRIPTION +pam_deny is a PAM module that always denies access and indicates a failure to +the calling application through the PAM library. +.SH OPTIONS +No options are supported for this module. +.SH FILES +To ensure that a service always denies access to users add the following lines to the +appropriate PAM configuration file: +.IP +.RS +.nf +#For authenticating +auth required pam_deny.so + +#For accounting +account required pam_deny.so + +#For password changing +password required pam_deny.so + +#For sessiong management +session required pam_deny.so +.RE +.SH AUTHOR +Seraphim Mellos <mellos at ceid dot upatras dot gr> +.SH "SEE ALSO" +.BR pam (8), +.BR pam.conf (8), +.BR pam.d (8) diff --git a/modules/pam_deny/pam_deny.c b/modules/pam_deny/pam_deny.c index adccf10..1bb9d49 100644 --- a/modules/pam_deny/pam_deny.c +++ b/modules/pam_deny/pam_deny.c @@ -1,3 +1,28 @@ +/* + * Copyright (c) 2008 Seraphim Mellos <mellos@ceid.upatras.gr> + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + #define PAM_SM_AUTH #define PAM_SM_ACCOUNT #define PAM_SM_SESSION |