virtdomains & PAM
nkulynych at gotshell.org
nkulynych at gotshell.org
Wed Sep 10 15:42:11 EDT 2003
Are there any patches needed to be applied? I've been trying to get
cyrus/sasl to authenticate using mysql auxprop with out any luck.
I've added to my imapd.conf
pwcheck_method: auxprop
auxprop_plugin: mysql
mysql_user: root
mysql_passwd: test
mysql_hostnames: 127.0.0.1
mysql_database: mail
mysql_statement: select password from users where username = '%u'
mysql_verbose: yes
mysql reports these queries
030910 14:38:48 41 Connect nazark at localhost as anonymous on
41 Quit
42 Connect nazark at localhost as anonymous on
42 Quit
43 Connect nazark at localhost as anonymous on
43 Query
43 Query
43 Quit
44 Connect nazark at localhost as anonymous on
44 Quit
Thanks
-Nazar
Quoting Rob Siemborski <rjs3 at andrew.cmu.edu>:
> On Wed, 10 Sep 2003 nkulynych at gotshell.org wrote:
>
> > I'v got small problem with cyrus, sasl & pam combination.
> > I am using cyrus as imap server and sasl+pam+mysql backend for
> > authentication. Everything works if my username in mysql is "username"
> > but when I change to "username at mydomain.com" and I do login as
> > username at mydomain.com authentication fails, looking back through sql
> > access queries show just "username" and somewhere in between it chops
> > of the "@mydomain.com" part. Thus not allowing to do virtual domains.
>
> You should either use the mysql auxprop plugin, or you should patch
> auth_pam.c to do what you need (I believe there were changes since 2.1.15
> was released to correctly handle realms with saslauthd, but I also believe
> they won't help your situation, since auth_pam doesn't use the realm
> parameter).
>
> -Rob
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
> Research Systems Programmer * /usr/contributed Gatekeeper
>
>
-------------------------------------------------
This mail sent from IMP: http://webmail.gotshell.org/
More information about the Info-cyrus
mailing list