Bug #12302 Hostname resolution preventing password changes
Submitted: 1 Aug 2005 18:04 Modified: 25 Aug 2005 10:44
Reporter: Dean Ellis Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.0.26 forward OS:Linux (Linux)
Assigned to: Jim Winstead

[1 Aug 2005 18:04] Dean Ellis
Description:
If a host is listed in /etc/hosts, and a login is created for user@ip or user@alias (rather than user@domainname), for a non-localhost IP, that user is unable to set password for self.

How to repeat:
Equivalent of:

In /etc/hosts:

10.0.0.10 testserver ts

GRANT USAGE ON *.* TO testuser@'10.0.0.10';

connect as above user, verify the connection:

SELECT CURRENT_USER();

try to set password:

SET PASSWORD = '';

Receiving: "Can't find any matching row in the user table."

Login of testuser@testserver is able to change password.
Login of testuser@ts is unable to change password.

Suggested fix:
n/a
[8 Aug 2005 22:56] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/28041
[22 Aug 2005 22:46] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/28657
[25 Aug 2005 2:07] Jim Winstead
Fixed in 4.1.15 and 5.0.13.

(Not actually merged to 5.0.13 yet, but it will be before that is ever released.)
[25 Aug 2005 10:44] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented bugfix in 4.1.15 and 5.0.13 changelogs. Closed.