* SMTP AUTH with exim
@ 2003-09-05 19:58 Koch, Peter
2003-09-05 20:47 ` Pierre A. Humblet
0 siblings, 1 reply; 2+ messages in thread
From: Koch, Peter @ 2003-09-05 19:58 UTC (permalink / raw)
To: cygwin
Hi all,
I've got exim working with cygwin correctly so far, even with SMTP AUTH.
Here are my 'authenticators':
plain:
driver = plaintext
public_name = PLAIN
server_prompts = :
server_condition = "\
${if and {{!eq{$2}{}}{!eq{$3}{}} \
{eq{$3}{${extract{1}{:} \
{${lookup{$2}lsearch{/etc/exim.passwd}{$value}{*:*}}}}}}}{1}{0}}"
server_set_id = $2
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "\
${if and {{!eq{$1}{}}{!eq{$2}{}} \
{eq{$2}{${extract{1}{:} \
{${lookup{$1}lsearch{/etc/exim.passwd}{$value}{*:*}}}}}}}{1}{0}}"
server_set_id = $1
Like this, auth uses the file '/etc/exim.passwd' for authentication
data.
Here goes my question: How would these authenticators have to look if I
wanted to use the Windows User database for authentication instead?
Gruss,
--------------------------------------------
Peter
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SMTP AUTH with exim
2003-09-05 19:58 SMTP AUTH with exim Koch, Peter
@ 2003-09-05 20:47 ` Pierre A. Humblet
0 siblings, 0 replies; 2+ messages in thread
From: Pierre A. Humblet @ 2003-09-05 20:47 UTC (permalink / raw)
To: Koch, Peter; +Cc: cygwin
"Koch, Peter" wrote:
>
> Hi all,
> I've got exim working with cygwin correctly so far, even with SMTP AUTH.
<snip>
>
> Here goes my question: How would these authenticators have to look if I
> wanted to use the Windows User database for authentication instead?
One way I can think of would be to write a 5 line program that
takes in as arguments the user name and password, calls the function
cygwin_logon_user documented in the Cygwin users' guide and exits
with success/error.
That program can then be called from exim with the "run" string expansion
documented in section 11.4 of the exim documentation.
That shouldn't be hard at all, but wouldn't be very efficient.
A slightly more ambitious project along the same lines is to write a daemon
program that listens on a (local, for security) socket for user + password,
calls cygwin_logon_user, immediately closes the handle, and writes an answer
to the socket.
That daemon can be accessed from exim with "readsocket", also in section 11.4
Pierre
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-05 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05 19:58 SMTP AUTH with exim Koch, Peter
2003-09-05 20:47 ` Pierre A. Humblet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).