Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting PAM to use MySQL
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rshadow
Apprentice
Apprentice


Joined: 28 Nov 2003
Posts: 176

PostPosted: Fri Feb 06, 2004 1:54 am    Post subject: Getting PAM to use MySQL Reply with quote

Ok. I'm still working on trying get postfix to auth from a mysql database. I believe that Postfix is now correctly identifing cyrus-sasl, as AUTH=PLAIN LOGIN lines appear on a EHLO of the postfix server. Now I'm a little confused about what is happening and exactly where its happening at.

Looking at my MySQL logs, I can see that an attempt to access the database is being made, however with no password. (see below). So I don't know if sasl is correctly calling PAM, or if PAM is configured wrong... or MySQL database is configured wrong.

[snip of mysql log]
sunflower1 mysql # head mysql.log
/usr/sbin/mysqld, Version: 4.0.16-log, started with:
Tcp port: 3306 Unix socket: /var/run/mysqld/mysqld.sock
Time Id Command Argument
040205 8:50:47 1 Connect Access denied for user: 'mailsql@localhost' (Using password: NO)
040205 8:50:55 2 Connect Access denied for user: 'mailsql@localhost' (Using password: NO)
040205 8:51:33 3 Connect Access denied for user: 'mailsql@localhost' (Using password: NO)

here is how pam is configured. (for pop3d, imap, and smtp. all the same)
auth optional pam_mysql.so host=localhost db=mailsql user=mailsql passwd=sunfloweryoung table=users usercolumn=email passwdcolum=clear crypt=0
account required pam_mysql.so host=localhost db=mailsql user=mailsql passwd=sunfloweryoung table=users usercolumn=email passwdcolumn=clear crypt=0
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20588

PostPosted: Fri Feb 06, 2004 9:53 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum