Opened 7 years ago

Closed 6 years ago

#1483959 closed Bugs (fixed)

Umlaut in Loginname does not work

Reported by: McShelby Owned by: thomasb
Priority: 5 Milestone: 0.1-rc1
Component: IMAP connection Version: 0.1-beta2
Severity: normal Keywords: logon umlaut
Cc:

Description

I am using hmailserver and may login name contains a german umlaut. This isn't an issue for Squirrelmail, as it logs me on correctly. Roundcubes log instead writes:

[16-Aug-2006 21:01:14 +0200] IMAP Error: Authentication for Sören@… failed (LOGIN): "a001 NO Invalid user name or password." in on line 0

I confirmed that a connection between hmail and RC exists by accessing onto a different account. There exists a different bug here in track, having an issue with special characters in the password field. I bet this is the same kind of bug.

Change History (6)

comment:1 Changed 7 years ago by McShelby

  • Milestone changed from 0.1-stable to 0.1-rc1

comment:2 Changed 7 years ago by thomasb

  • Owner set to thomasb
  • Status changed from new to assigned

comment:3 Changed 6 years ago by seansan

I did some testing.

special characters are supported it seems - or some of them by adding "" quotes arounn the password. Only for the username this does not do the trick. The username has to be alphanumeric.

I have the idea if other methods then PLAIN or LOGIN are allowed on an IMAP server that an MD5 encrypted login would maybe circumvent this issue. (How come squirrel doe snot have this issue?)

comment:4 Changed 6 years ago by seansan

Found code from squirrel to escape slashes and quotes, but nothing for umlauts

in imap.inc

function quoteimap($str) {
    return preg_replace("/([\"\\\\])/", "\\\\$1", $str);
}

function iil_C_Login(&$conn, $user, $password){

    $password = strtr($password, array('"'=>'\\"', '\\' => '\\\\'));  
    fputs($conn->fp, "a001 LOGIN \"".quoteimap($user)."\" \"".quoteimap($password)."\"\r\n");


I wonder what other methods hmailserver supports that this imap extension maybe cannot detect / support?

comment:5 Changed 6 years ago by crichardson

i tryed it here but i dont know if it has to do with rc as much as it may lay in the type of table in the database that rc uses. using show logging.

DB Error in /usr/local/www/data-dist/RoundCube/RC/chris/program/include/rcube_db.inc (501): DB Error: unknown error Query: SELECT user_id, username, language, preferences FROM users WHERE mail_host='127.0.0.1' AND (username='Sören' OR alias='Sören') [nativecode=1267 Illegal mix of collations (ascii_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '=']
IMAP Error: Authentication for Sören failed (LOGIN): "a001 BAD 8bit data in atom"

Warning: Cannot modify header information - headers already sent in /usr/local/www/data-dist/RoundCube/RC/chris/program/include/rcube_shared.inc on line 143

comment:6 Changed 6 years ago by thomasb

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

Database configuration changed in [5870871a].
Will close this ticket for now.

Note: See TracTickets for help on using tickets.