Parses /etc/postfix/*passwd
Author: Anton Baranov abar@linuxfoun dation.org anov
Postfix_Passwordmap | Parses /etc/postfix/*passwd |
Reference | This lens tries to keep as close as possible to `man 5 postconf` and http://www.postfix.org |
License | This file is licenced under the LGPL v2+, like the rest of Augeas. |
Configuration files | This lens applies to /etc/postfix/*passwd. |
Examples | The Test_Postfix_Passwordmap file contains various examples and tests. |
Augeas Lenses | |
space_or_eol | |
word | |
colon | |
username | |
password | |
record | |
lns | |
Augeas Variables | |
filter |
This lens tries to keep as close as possible to `man 5 postconf` and http://www.postfix.org
This lens applies to /etc/postfix/*passwd. See filter.
The Test_Postfix_Passwordmap file contains various examples and tests.
let space_or_eol = del /([ \t]*\n)?[ \t]+/ " "
let word = store /[A-Za-z0-9@_\+\*.-]+/
let colon = Sep.colon
let username = [ label "username" . word ]
let password = [ label "password" . (store Rx.space_in)? ]
let record = [ label "pattern" . store /\[?[A-Za-z0-9@\*.-]+\]?(:?[A-Za-z0-9]*)*/ . space_or_eol . username . colon . password . Util.eol ]
let lns = (Util.empty | Util.comment | record)*