Article delegate-en/3024 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A3023@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Authenticating IMAP access
14 Jul 2005 01:08:17 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


In message <_A3023@delegate-en.ML_> on 07/14/05(08:46:04)
you Peter Kaldis <pw4fqbdyi-5sbstgfeaoxr.ml@ml.delegate.org> wrote:
 |Second, I'd like to ask for your help once more. I've built and installed version 9.0.3-pre29 which contains your IMAP patch to support the AUTHORIZOR argument. Running it with the -list argument as per your
 |example works fine. However if I try to use "localhost" or the -Fauth to define a set of users:passwords, this doesn't seem to work.
...
 |07/13 16:15:19.81 [27880] 1+0: C: 1 login "pkaldis" ****
 |07/13 16:15:19.81 [27880] 1+0: persistent auth: ftp://pkaldis@localhost:21 /var/spool/delegate-nobody/adm/authorizer/localhost/457ac90b1c1f4d78f47db9fba87aeca4
 |07/13 16:15:19.81 [27880] 1+0: ConnectToServer connected [18] {127.0.0.1:21 <- 127.0.0.1:33352} [0.000s]
 |07/13 16:15:19.81 [27880] 1+0: willSTLS_SV: ServerFlags=10
 |07/13 16:15:22.18 [27880] 1+0: ## Auth/FTP = -1 <pkaldis:****@localhost>

I suppose the reason of the failure is that the password argument for LOGIN
is sent as "String" rather than Atom.  You can see what is sent from the
client with "FFROMCL=-tee" parameter.

The patch should have been like the enclosed patch to cope with String. 
And, I should support AUTHENTICATE command as well as LOGIN command...

Cheers,
Yutaka
--
  D G   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller


*** ../delegate9.0.3-pre29/src/imap.c	Mon Jul 11 05:54:34 2005
--- src/imap.c	Thu Jul 14 09:56:18 2005
***************
*** 233,238 ****
--- 233,243 ----
  			if( *qarg == '"' )
  				wordScanY(qarg+1,user,"^\"");
  			else	wordScan(qarg,user);
+ 			if( *qrem == '"' ){
+ 				ovstrcpy(qrem,qrem+1);
+ 				if( dp = strchr(qrem,'"') )
+ 					truncVStr(dp);
+ 			}
  			if( CTX_auth(Conn,user,qrem) < 0 ){
  				fprintf(tc,"%s NO LOGIN forbidden\r\n",qtag);
  				fflush(tc);

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V