Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#1484629 closed Bugs (fixed)

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 (5)

comment:1 Changed 6 years ago by thomasb

  • Component changed from Client to PHP backend
  • Milestone set to 0.1-stable
  • Version changed from 0.1-rc1 to 0.1-rc2

Need to check imap lib for quoting.

comment:2 Changed 5 years 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. ;-)

comment:3 Changed 5 years 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!

comment:4 Changed 5 years ago by till

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in SVN ([39508cb7]).

comment:5 Changed 5 years 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.