delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/05/16:48:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F58F662.4787800D@phumblet.no-ip.org>
Date: Fri, 05 Sep 2003 16:47:30 -0400
From: "Pierre A. Humblet" <pierre AT phumblet DOT no-ip DOT org>
Reply-To: Pierre DOT Humblet AT ieee DOT org
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: "Koch, Peter" <peter DOT koch AT schlund DOT de>
CC: cygwin AT cygwin DOT com
Subject: Re: SMTP AUTH with exim
References: <AC6898F1C1D281428FA98B3618FE42020194B7C2 AT xchg2>

"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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019