On 20-04-15 15:09, Péter Márton wrote:
Hi!
It works when using LDAP. I've duplicated the "username change" debug line, just to see that the variables are really updated:
Apr 20 14:30:27 imap21 dovecot: auth-worker(27127): Debug: sql(ppp@example.net): username changed ppp@example.net -> uppp Apr 20 14:30:27 imap21 dovecot: auth-worker(27127): Debug: sql(uppp): username changed uppp -> uppp Apr 20 14:30:27 imap21 dovecot: auth: Debug: userdb out: USER#0111#011ppp@example.net#011home=/home/ppp#011uid=500#011gid=500#011quota_rule=*:storage=3100b:messages=1024
And the answer is of course yes. Just the userdb out string has the wrong value. The right value is lost somewhere. But where?
Your messages to this list seem to miss a feature that is very welcome on this kind of mailing lists: an actual problem or an issue you want to fix.
When users can login and the username change is intended (as can be concluded from your comments), then what is the problem you're reporting?
Are you trying to reporting the fact that the auth debug output has the wrong username value? If not, what is it you're to tell us? :)
Regards,
Peter
Log of the (for me unusable) LDAP query:
Apr 20 14:28:07 imap21 dovecot: auth: Debug: master in: USER#0111#011m2500j6#011service=doveadm Apr 20 14:28:07 imap21 dovecot: auth: Debug: ldap(m2500j6): user search: base=ou=Users,ou=Mail,dc=bnet,dc=at scope=subtree filter=(uid=m2500j6) fields=mailHost Apr 20 14:28:07 imap21 dovecot: auth: Debug: ldap(m2500j6): result: mailHost=localhost; mailHost unused Apr 20 14:28:07 imap21 dovecot: auth: Debug: ldap(m2500j6): username changed m2500j6 -> localhost Apr 20 14:28:07 imap21 dovecot: auth: Debug: ldap(localhost): username changed localhost -> localhost Apr 20 14:28:07 imap21 dovecot: auth: Debug: ldap(localhost): result: mailHost=localhost Apr 20 14:28:07 imap21 dovecot: auth: Debug: userdb out: USER#0111#011localhost#011