|
NAMEpam_regex - authentication using regular expressionsSYNOPSISpam_regex [sense=SENSE] [user=NAME] [regex=EXPRESSION] [basic|extended] [case|ignore-case|icase] [transform=S-EXPR] [debug[=NUMBER]] [waitdebug] [audit]DESCRIPTIONA general-purpose tool for authentication using regular expressions. It can be used to control access depending on whether the user name matches a given regular expression or to modify user name as per a sed-like expression, so that subsequent modules see the modified name.OPTIONS
s/regexp/repl/[flags] See sed(1), for a detailed description. Supported flags are: g, to apply the replacement to all matches, not just the first, i, to use case-insensitive matching, and x, which indicates that regexp is an extended POSIX regular expression. A decimal number in the flags field indicates the ordinal number of the match to be replaced. Using it together with g results in undefined behavior. Any delimiter can be used in lieue of the slash, the only requirement being that it be used consistently throughout the expression.
MODULE TYPES PROVIDEDauthRETURN VALUES
EXAMPLES
auth required pam_regex.so sense=deny regex=.*@.*
auth required pam_regex.so extended transform=s/.*/\L&/g;s/@.*// NOTEThis manpage is a short description of pam_regex. For a detailed discussion, including examples and usage recommendations, refer to the PAM-modules Manual available in texinfo format. If the info reader and the tar documentation are properly installed on your system, the commandinfo pam-modules
should give you access to the complete manual. You can also view the manual using the info mode in emacs(1), or find it in various formats online at http://www.gnu.org.ua/software/pam-modules/manual
If any discrepancies occur between this manpage and the PAM-modules Manual, the later shall be considered the authoritative source. SEE ALSOpam.conf(5), pam.d(5), pam(8), regex(7), sed(1).AUTHORSSergey Poznyakoff <gray@gnu.org>BUG REPORTSReport bugs to <bug-pam-modules@gnu.org.ua>.COPYRIGHTCopyright © 2001-2014 Sergey PoznyakoffLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Visit the GSP FreeBSD Man Page Interface. |