Re: [Dovecot] [Patch] Samba's proposed "ntlm_auth + winbind" support for dovecot-auth

2007-07-02 Thread Dmitry Butskoy
Timo Sirainen wrote: On Mon, 2007-07-02 at 20:19 +0400, Dmitry Butskoy wrote: Timo Sirainen wrote: - Currently I strip domain part of the username returned, i.e. from "DOMAIN\user" just to "user". Maybe better add some option "auth_winbind_strip_domain" for this? What if

Re: [Dovecot] [Patch] Samba's proposed "ntlm_auth + winbind" support for dovecot-auth

2007-07-02 Thread Timo Sirainen
On Mon, 2007-07-02 at 20:19 +0400, Dmitry Butskoy wrote: > Timo Sirainen wrote: > >> - Currently I strip domain part of the username returned, i.e. from > >> "DOMAIN\user" just to "user". Maybe better add some option > >> "auth_winbind_strip_domain" for this? > >> > > > > What if you changed

Re: [Dovecot] [Patch] Samba's proposed "ntlm_auth + winbind" support for dovecot-auth

2007-07-02 Thread Dmitry Butskoy
Timo Sirainen wrote: - Currently I strip domain part of the username returned, i.e. from "DOMAIN\user" just to "user". Maybe better add some option "auth_winbind_strip_domain" for this? What if you changed it to [EMAIL PROTECTED] Then you could use Dovecot's standard %n or %u variables.

Re: [Dovecot] [Patch] Samba's proposed "ntlm_auth + winbind" support for dovecot-auth

2007-07-02 Thread Timo Sirainen
On Mon, 2007-07-02 at 16:19 +0400, Dmitry Butskoy wrote: > - I try to code things most close to used style, i.e. using Dovecot's > memory-management and io-pipe routines etc., but could someone look at > it and check whether I've missed something or not? close() and dup2() errors should be repor

[Dovecot] [Patch] Samba's proposed "ntlm_auth + winbind" support for dovecot-auth

2007-07-02 Thread Dmitry Butskoy
The Samba team recommends to use their "ntlm_auth" command line helper for "NTLM" and "GSS-SPNEGO" authentication. This helper interacts with the Samba's winbind daemon, and this way can authenticate users against NT or Active Directory windows domain. Currently Dovecot can do "NTLM" authenti