At 15:33 +0100 2003/01/01, Nico Erfurth wrote:
>On Wed, 1 Jan 2003, Giuliano Gavazzi wrote:
>
>> What I find strange is that exim has no built in getpwnam
>> functionality. Isn't that a feasable way to access passwords on any
>> Unix-like system or do PAM and other methods break it?
>
>Exim 4.12 provides a "passwd"-lookup.
>
>ciao
Uh, thanks. So I guess this could be used as in:
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}} \
{crypteq{$2}{\
${lookup passwd {$1}{$value}{*}}}}}{1}{0}}"
plain:
driver = plaintext
public_name = PLAIN
server_prompts = :
server_condition = "${if and {{!eq{$2}{}}{!eq{$3}{}}\
{crypteq{$3}{\
${lookup passwd {$2} {$value}{*}}}}}{1}{0}}"
I'll give it a try.
Giuliano
--
H U M P H
|| |||
software
Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/