Server IP : 127.0.0.2 / Your IP : 13.59.48.34 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/augeas/lenses/dist/ |
Upload File : |
(* Module: Pam Parses /etc/pam.conf and /etc/pam.d/* service files Author: David Lutterkort <lutter@redhat.com> About: Reference This lens tries to keep as close as possible to `man pam.conf` where possible. About: Licence This file is licensed under the LGPL v2+, like the rest of Augeas. About: Lens Usage About: Configuration files This lens autoloads /etc/pam.d/* for service specific files. See <filter>. It provides a lens for /etc/pam.conf, which is used in the PamConf module. *) module Pam = autoload xfm let eol = Util.eol let indent = Util.indent (* For the control syntax of [key=value ..] we could split the key value *) (* pairs into an array and generate a subtree control/N/KEY = VALUE *) let control = /(\[[^]#\n]*\]|[^[ \t][^ \t]*)/ let word = /[^# \t\n]+/ (* Allowed types *) let types = /(auth|session|account|password)/i (* This isn't entirely right: arguments enclosed in [ .. ] can contain *) (* a ']' if escaped with a '\' and can be on multiple lines ('\') *) let argument = /(\[[^]#\n]+\]|[^[#\n \t][^#\n \t]*)/ let comment = Util.comment let comment_or_eol = Util.comment_or_eol let empty = Util.empty (* Not mentioned in the man page, but Debian uses the syntax *) (* @include module *) (* quite a bit *) let include = [ indent . Util.del_str "@" . key "include" . Util.del_ws_spc . store word . eol ] (* Shared with PamConf *) let record = [ label "optional" . del "-" "-" ]? . [ label "type" . store types ] . Util.del_ws_tab . [ label "control" . store control] . Util.del_ws_tab . [ label "module" . store word ] . [ Util.del_ws_tab . label "argument" . store argument ]* . comment_or_eol let record_svc = [ seq "record" . indent . record ] let lns = ( empty | comment | include | record_svc ) * let filter = incl "/etc/pam.d/*" . excl "/etc/pam.d/allow.pamlist" . excl "/etc/pam.d/README" . Util.stdexcl let xfm = transform lns filter (* Local Variables: *) (* mode: caml *) (* End: *)