Postfix_Passwordmap

Parses /etc/postfix/*passwd

Author: Anton Baranov abar.nosp@m.anov@linuxfoun.nosp@m.dation.org

Summary
Postfix_PasswordmapParses /etc/postfix/*passwd
ReferenceThis lens tries to keep as close as possible to `man 5 postconf` and http://www.postfix.org/SASL_README.html#client_sasl_enable where possible.
LicenseThis file is licenced under the LGPL v2+, like the rest of Augeas.
Configuration filesThis lens applies to /etc/postfix/*passwd.
ExamplesThe Test_Postfix_Passwordmap file contains various examples and tests.
Augeas Lenses
space_or_eol
word
colon
username
password
record
lns
Augeas Variables
filter

Reference

This lens tries to keep as close as possible to `man 5 postconf` and http://www.postfix.org/SASL_README.html#client_sasl_enable where possible.

License

This file is licenced under the LGPL v2+, like the rest of Augeas.

Configuration files

This lens applies to /etc/postfix/*passwd.  See filter.

Examples

The Test_Postfix_Passwordmap file contains various examples and tests.

Augeas Lenses

space_or_eol

let space_or_eol = del /([ \t]*\n)?[ \t]+/ " "

word

let word = store /[A-Za-z0-9@_\+\*.-]+/

colon

let colon = Sep.colon

username

let username = [ label "username" . word ]

password

let password = [ label "password" . (store Rx.space_in)? ]

record

let record = [ label "pattern" . store /\[?[A-Za-z0-9@\*.-]+\]?(:?[A-Za-z0-9]*)*/ . space_or_eol . username . colon . password . Util.eol ]

lns

let lns = (Util.empty | Util.comment | record)*

Augeas Variables

filter

Provides unit tests and examples for the Postfix_Passwordmap lens.
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)*
Close