Ticket #1484629 (closed Bugs: fixed)

Opened 14 months ago

Last modified 10 months ago

Login fails when username has blanks in it

Reported by: rjel Owned by: till
Priority: 5 Milestone: 0.1-stable
Component: PHP backend Version: 0.1-rc2
Severity: trivial Keywords:
Cc:

Description

The imap server that I validate against has usernames that are made up of FirstName? LastName?. When logging in with FirstName? LastName? validation fails but when the username is quoted it works "FirstName? LastName?".

Change History

Changed 13 months ago by thomasb

  • version changed from 0.1-rc1 to 0.1-rc2
  • component changed from Client to PHP backend
  • milestone set to 0.1-stable

Need to check imap lib for quoting.

Changed 10 months ago by till

IMAP login seperates username and password by space. I "think" we need to enclose each with quotes?

And I think spaces in passwords are possible too. I'm just surprised no one reported that yet. ;-)

Changed 10 months ago by till

  • owner set to till
  • status changed from new to assigned
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.
. login "till foo" bar
. NO Login failed.

I will commit a fix!

Changed 10 months ago by till

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in SVN (r994).

Changed 10 months ago by till

Another test:

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.
. login "till@foo" "xxx"
. OK LOGIN Ok.
. logout
* BYE Courier-IMAP server shutting down
. OK LOGOUT completed
Note: See TracTickets for help on using tickets.