pam_mysql problem, with md5 passwords

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm trying to use saslautd with pam_mysql to allow user to log in to
a cyrus-imap server.


If use I create users and passordes in mysql like this:

insert into accountuser(username, password) values ("username",
encrypt("userpassword"));

and add enter the line below into my  /etc/pam.d/imap file:

auth sufficient pam_mysql.so user=mail passwd=secret host=localhost
db=mail table=accountuser usercolumn=username passwdcolumn=password
crypt=1 

I can verify that everything works fine by doing:

testsaslauthd -u "username" -p "usernamepassword" -s imap
And it returns: 
0: OK "Success. 
as it should

This mean that my saslconfiguration should be OK, so far.


The problem is that I need the system crypt system to use md5 as
encryption algorithm, as I have existing users, that I want to import
into my new imapb server.


To do that I instead need to create new users and passwords with a salt
starting witn $1$ like this:

insert into accountuser(username, password) values ("username",
encrypt("userpassword","$1$st$"));

And change the /etc/pam.d/imap to:

auth sufficient pam_mysql.so user=mail passwd=secret host=localhost
db=mail table=accountuser usercolumn=username passwdcolumn=password
crypt=1  md5="true"

Now testsaslauth fails.
Any ideas, why this doesn't work?

Regards
Uno Engborg



-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux