RE: [Exim] Need help with smtp/authentication / using passwd…

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Terry Shows
Data:  
Para: exim-users
Asunto: RE: [Exim] Need help with smtp/authentication / using passwd file
Philip,

I didn't realize that the lsearch picked up everything to the right of the
colon, I really appreciate you pointing that out to me.

On every system that I manage (I do for over a dozen clients now), I have
virtual users, and I manage the files personally. This client wants to
manage his own system, but wants his interface to be intuitive.

I chose to configure webmin to give him "limited" access to add/delete users
from the system (thus taking care of mail delivery and pop3 pickup), but the
smtp authentication is causing me some issues. I don't want a separate file
to maintain, nor does this client have the money to spend for me to set up
another interface for adding/deleting users from a private file/database.

I know I read some comments in the past on how to do this, but my searches
have not been successful to find them again.

I will keep searching and experimenting. Who knows, I may find an
application that gives me an option I am happier with.

Tks
Terry

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: Tuesday, September 16, 2003 3:45 AM
To: Terry Shows
Cc: exim-users@???
Subject: Re: [Exim] Need help with smtp/authentication / using passwd
file


On Mon, 15 Sep 2003, Terry Shows wrote:

> I have the following in my config file:
> ---------- clip -----------------
> authenticate_users:
>    driver = plaintext
>    public_name = LOGIN
>    server_prompts = Username:: : Password::
>   server_condition = "${if crypteq
> {${lookup{$1}lsearch{/etc/passwd}{$value}fail
> }} {$2} {yes} {no}}"
>    server_set_id = $1
> ------------- end clip -----------------

>
> All attempts fail with the following message:
>    2003-09-15 14:07:02 authenticate_users authenticator failed for
> terry.csstnlocal
> .com (terry) [192.168.1.100]: 535 Incorrect authentication data
> (set_id=terry.shows)

>
> I can successfully do this using plain text files, so I know my condition

is
> right. All I changed was the "eq" to a "crypteq" and the password file to
> "/etc/passwd". I would prefer not to keep two separate password files

(one
> for smtp, and another for pop3)


Others have commented on the wisdom of keeping passwords in /etc/passwd.
I will confine myself to the actual problem: the result of your ${lookup
is going to be the complete data from the password line, not just the
password. You need to use a ${extract item to extract the first item
(the password).

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book