rlm_passwd allows to authorize user via any pwd-like file. Format of
pwd file is configurable via "format" option in module configuration.
Examples:
passwd smbpasswd {
filename = /etc/smbpasswd
format = "*User-Name::LM-Password:NT-Password:::"
authtype = MS-CHAP
hashsize = 100
ignorenislike = no
allowmultiplekeys = no
}
passwd group {
filename = /etc/group
format = "Group-Name:::*,User-Name"
hashsize = 50
ignorenislike = yes
allowmultiplekeys = no
}
format:
* - key field, there should be exactly one key field
*Attribute means that
, - field is listable, may contains few keys
authorize {
...
smbpasswd
group
}
authenticate {
...
mschap
...
}