LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2011, 04:37 PM   #1
junust
Member
 
Registered: Jul 2008
Location: Israel Ramat Gan
Distribution: CentOs 5.3, SuSe 11.1, Solaris 9, Slackware 13
Posts: 81

Rep: Reputation: 15
mysql authentication does not work


Hello All

My system is
Code:
Red Hat Enterprise Linux Server release 5 (Tikanga)
We use courier mail server for pop3 mailboxes, and postfix for in/out mail delivery
Code:
tcp        0      0 :::110                      :::*                        LISTEN      5268/couriertcpd

Now Pop3 users, could not authenticate with there username/pass
It does not work now, and I have this message in my log file

Code:
authdaemond: SQL query: SELECT username, password, "", uid, gid, home, maildir, quota, name, "" FROM mailbox WHERE username = "test@test.org.il"
Apr  6 23:05:01 lgw pop3d: LOGIN FAILED, user=test, ip=[::ffff:127.0.0.1]
I could see in my postfix.main
Code:
mysql-virtual_transports_dbname = mail
mysql-virtual_mailbox_limit_maps_dbname = mail
mysql-virtual_forwardings_dbname = mail
mysql-virtual_email2email_dbname = mail
mysql-virtual_domains_dbname = mail


virtualmailboxs_password = pass
mysql-virtual_transports_password = pass
mysql-virtual_mailbox_limit_maps_password = pass
mysql-virtual_forwardings_password = pass
mysql-virtual_email2email_password = pass
mysql-virtual_domains_password = pass

and I could successful run query from mysql
Code:
 mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7787 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use mail
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SELECT username, password, "", uid, gid, home, maildir, quota, name, "" FROM mailbox WHERE username = "test@test.org.il"
    -> ;
+----------------------+------------------+--+------+------+-------------+-----------------------+-------+-------+--+
| username             | password         |  | uid  | gid  | home        | maildir               | quota | name  |  |
+----------------------+------------------+--+------+------+-------------+-----------------------+-------+-------+--+
| test@test.org.il | 773359240eb9a1d9 |  | 5000 | 5000 | /home/vmail | test@test.org.il/ |     0 | test |  |
+----------------------+------------------+--+------+------+-------------+-----------------------+-------+-------+--+
1 row in set (0.00 sec)
I tried to change the password for this user, insert new user to the same tables, but no success to authenticate


I suppose that the problem is authentication of courier mail demon (which in my mind ) should work with mysql 'mail' database in the way is postfix work
Code:
virtualmailboxs_password = pass
virtualmailboxs_dbname = mail
,

I could not find any reference with courir demon to mysql database username,password to authenticate users..



So, my quetions is, if it's possible to tracert mysql db to find out if courier demon 'asking' for authentication, or is there any error with this, and which configuration file should be checked, in order to find out what authentication method is courier mail demon use for

Any input greatly eppreciated

P.S
This is not a new installation, the system has been working good one days ago
 
Old 04-08-2011, 01:03 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

You marked your thread as solved, does that mean that you've found the answer you're looking for? Not sure about how to exactly trace MySQL but you could enable logging and check the logs for all queries and errors.

Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql Authentication problem sabir_mustafa Linux - Software 3 08-26-2009 12:09 PM
I have AD authentication work, how do i make SSH PAM work in RHEL4? epmd Red Hat 0 09-19-2007 06:04 PM
squid authentication with mysql Pratik H Pandya Linux - Networking 2 10-26-2006 08:11 AM
Authentication to SSH via MySQL wellard1981 Linux - Security 5 04-21-2004 09:30 AM
MySql authentication on RedHat RKris Linux - Networking 3 03-17-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration