Re: [Dovecot] Migrating password scheme
I tried the userdb prefetch / postlogin script method to do some password manipulation, but it doesn't appear to work for me. In particular, I don't think this method works with
userdb {
driver = passwd-file
args = /path/to/passwd-file userdb_pw=%w
}
because it doesn't understand arbitrary var=value in the args configuration. Dvoecot seems to accept the entire string as the pathname for a password file. Is there a way to pass the plaintext password to a post-login script using passwd-file userdb?
Before this, I managed password manipulation by process tracing dovecot's auth process read() syscalls and parsing out the user/password from the second buffer argument. Quite a hack but it worked.
Joseph Tam jtam.home@gmail.com
Zitat von Joseph Tam jtam.home@gmail.com:
I tried the userdb prefetch / postlogin script method to do some password manipulation, but it doesn't appear to work for me. In particular, I don't think this method works with
userdb { driver = passwd-file args = /path/to/passwd-file userdb_pw=%w }
From what i understand you have to set a userdb_<something> variable
with passdb and userdb prefetch set. The %w variable seems to be
already empty (again?) at userdb stage.
Regards
Andreas
On 23.3.2013, at 9.48, Joseph Tam jtam.home@gmail.com wrote:
I tried the userdb prefetch / postlogin script method to do some password manipulation, but it doesn't appear to work for me. In particular, I don't think this method works with
userdb { driver = passwd-file args = /path/to/passwd-file userdb_pw=%w }
With v2.1 try:
userdb { driver = passwd-file args = /path/to/passwd-file default_fields = pw=%w }
participants (3)
-
Joseph Tam
-
lst_hoe02@kwsoft.de
-
Timo Sirainen