Timo Sirainen wrote:
And it then stops responding (without giving a reason, breaking the connection). Nothing in the logs, it sees this as a regular login and that's all...
So it's Dovecot that disconnects just after logging in, even if you try with openssl client directly? Then there should be something in Dovecot's logs..
Sorry, I was wrong in my reporting: it _doesn't_ break the connection. It is still connected, but it doesn't respond to anything. Even bad commands don't give "-ERR Unknown command." anymore. That's one reason why I think it is strange...
I solved the user problem just by copying his entry a few times. Now, I don't think it is purely ldap-related, as the login _is_ accepted.
It sounds like either home directory is wrong, or the uid/gid doesn't have access to it. Or maybe you have set LDAP to return "mail" entry too which is wrong? In any case after the "OK Logged in" message Dovecot doesn't even know how it got its information, it only cares that home/uid/gid is correct.
But why does it work after just copying it a few times?
--
Yannick Majoros http://www.inma.ucl.ac.be/~majoros Informaticien AUTO-INMA/FSA/UCL