[Dovecot] Dovecot-auth stand alone and --without-pam
Jorgen Lundman
lundman at lundman.net
Wed Oct 18 09:09:15 UTC 2006
Interesting side note. So I disabled everything I did not need, just ldap for
now. Changed my configuration to have just:
passdb ldap {
args = /usr/local/etc/dovecot-ldap.conf
}
userdb prefetch {
}
auth default_with_listener {
mechanisms = plain login
passdb ldap {
args = /usr/local/etc/dovecot-ldap.conf
}
userdb prefetch {
}
Note the "passdb" change from default.
I found when I did this, I could not authenticate:
535 5.7.0 Error: authentication failed: UGFzc3dvcmQ6
Oct 18 16:45:15 corpsmtp01 dovecot: [ID 107833 mail.info] auth(default_with_list
ener): ldap(lundman): Password mismatch
Oct 18 16:45:15 corpsmtp01 dovecot: [ID 107833 mail.info] auth(default_with_list
ener): ldap(lundman): crypt(MyPlainTextPass) != 'MyCryptPass'
It turns out, using "--without-pam" is no good, so I compiled it with "pam"
support again, changed the listener section to:
auth default_with_listener {
mechanisms = plain login
passdb pam {
}
userdb prefetch {
}
and suddenly it works again:
235 2.0.0 Authentication successful
Intentional?
Lund
Jorgen Lundman wrote:
>
>
> Timo Sirainen wrote:
>
>>
>> protocols = none works.
>>
>
>
> Damnit! I have been reading your code to figure out how to start it
> stand-alone!
>
> # export USERDB_1_DRIVER=prefetch
> # export PASSDB_1_DRIVER=ldap
> # export PASSDB_1_ARGS=/usr/local/etc/dovecot-ldap.conf
> # export MECHANISMS="plain login"
> # export AUTH_1=/var/spool/postfix/private/auth
> # export AUTH_1_MODE=0660
> # /usr/local/libexec/dovecot/dovecot-auth
>
> Oh well, I'll run "dovecot" master instead :)
>
> Lund
>
--
Jorgen Lundman | <lundman at lundman.net>
Unix Administrator | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo | +81 (0)90-5578-8500 (cell)
Japan | +81 (0)3 -3375-1767 (home)
More information about the dovecot
mailing list