Re: [Dovecot] Virtual Users, PAM authentication, MySql backend

2010-11-30 Thread Álvaro Leão
i agree with you...but it's my boss order.. :(
and...he is the boss


Álvaro César Leão Teixeira


2010/11/30 Noel Butler 

> On Tue, 2010-11-30 at 14:13 -0200, Álvaro Leão wrote:
>
>
> > with this example, and the correct pam,d/dovecot (with the mysql acess),
> > i'll just use the mysql to authenticate, using the pam module to acess
> the
> > user/password, right?
>
>
> Why be concerned about needing to use PAM?
> It is evil, it is why some distros do not include/use it, you're better
> of using MySQL for all and be done with it, at least if something fails
> you don't have many places to look, only one.
>
>
>


Re: [Dovecot] Virtual Users, PAM authentication, MySql backend

2010-11-30 Thread Noel Butler
On Tue, 2010-11-30 at 14:13 -0200, Álvaro Leão wrote:


> with this example, and the correct pam,d/dovecot (with the mysql acess),
> i'll just use the mysql to authenticate, using the pam module to acess the
> user/password, right?


Why be concerned about needing to use PAM?
It is evil, it is why some distros do not include/use it, you're better
of using MySQL for all and be done with it, at least if something fails
you don't have many places to look, only one.




signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Virtual Users, PAM authentication, MySql backend

2010-11-30 Thread Álvaro Leão
thank's again Timo...

with this example, and the correct pam,d/dovecot (with the mysql acess),
i'll just use the mysql to authenticate, using the pam module to acess the
user/password, right?


Álvaro César Leão Teixeira


2010/11/30 Timo Sirainen 

> On 30.11.2010, at 12.30, Álvaro Leão wrote:
>
> > Can I use PAM authentication, witch get the users data from a external
> > database (like mysql)? I've found many ways to do this stuff
> disconnectedly
> > (like pam authentication with passwd ), but i can put all together? I
> can't
> > use the passwd...
>
> So I guess you mean something like (v1.x configuration):
>
> passdb pam {
> }
> userdb sql {
>  args = /etc/dovecot/dovecot-sql.conf
> }
>
>


Re: [Dovecot] Virtual Users, PAM authentication, MySql backend

2010-11-30 Thread Timo Sirainen
On 30.11.2010, at 12.30, Álvaro Leão wrote:

> Can I use PAM authentication, witch get the users data from a external
> database (like mysql)? I've found many ways to do this stuff disconnectedly
> (like pam authentication with passwd ), but i can put all together? I can't
> use the passwd...

So I guess you mean something like (v1.x configuration):

passdb pam {
}
userdb sql {
  args = /etc/dovecot/dovecot-sql.conf
}