[Dovecot] dovecot + winbind problem
Hi!
I'm having some problem with our setup. I have a linux server authenticating from a win2k3 domain controller via winbind and pam. When i try to log in I receive the following error messages:
Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' OK Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access Jul 3 10:26:10 zeusz dovecot: auth(default): userdb(tamas,127.0.0.1): user not found from userdb Jul 3 10:26:10 zeusz dovecot: imap-login: Internal login failure: user=<tamas>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
But when i try other services which also use winbind via pam (like popa3d) i can log in without any problem.
Any ideas?
On 3.7.2007, at 11.28, Gregorics Tamás wrote:
Hi!
I'm having some problem with our setup. I have a linux server
authenticating from a win2k3 domain controller via winbind and pam.
When i try to log in I receive the following error messages:Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' OK Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access Jul 3 10:26:10 zeusz dovecot: auth(default): userdb(tamas, 127.0.0.1): user not found from userdb
The authentication succeeded, but your userdb setup isn't right. What
userdb do you use? Post dovecot -n output.
Problem is, the same setup works on another system, and actually this setup worked till yesterday, and nothing changed.
# /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap login_dir: /var/run/dovecot//login login_executable: /usr/lib/dovecot/imap-login mail_extra_groups: mail mail_location: mbox:/var/mail/.imap/%u/.imap:INBOX=/var/mail/%u mbox_write_locks: fcntl auth default: passdb: driver: pam userdb: driver: passwd
The mail_location might be confusing first, but i made it because the users (from windows) don't have home directories (and they use pop3 anyway).
Timo Sirainen wrote:
On 3.7.2007, at 11.28, Gregorics Tamás wrote:
Hi!
I'm having some problem with our setup. I have a linux server authenticating from a win2k3 domain controller via winbind and pam. When i try to log in I receive the following error messages:
Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' OK Jul 3 10:26:10 zeusz pam_winbind[20375]: user 'tamas' granted access Jul 3 10:26:10 zeusz dovecot: auth(default): userdb(tamas,127.0.0.1): user not found from userdb
The authentication succeeded, but your userdb setup isn't right. What userdb do you use? Post dovecot -n output.
On Tue, 2007-07-03 at 15:37 +0200, Gregorics Tamás wrote:
Problem is, the same setup works on another system, and actually this setup worked till yesterday, and nothing changed. .. userdb: driver: passwd ..
userdb(tamas,127.0.0.1): user not found from userdb
Well, Dovecot didn't find the user from passwd. You can set auth_debug=yes to see if it shows up anything more in logs, but it probably also says the same thing.
Are you using passwd files or have you configured nss_ldap or something?
Yes, i set up winbind for passwd and group in nsswitch.conf
mcdouglas@zeusz:~$ getent passwd tamas tamas:*:10001:10001:Tamas:/home/PANNONVOLAN/tamas:/bin/bash
So it works, and as i said, i can log on to other services on the Linux using the same method (pam+winbind+nss)
Well, Dovecot didn't find the user from passwd. You can set auth_debug=yes to see if it shows up anything more in logs, but it probably also says the same thing.
Are you using passwd files or have you configured nss_ldap or something?
participants (2)
-
Gregorics Tamás
-
Timo Sirainen