[Dovecot] postlogin script
Hi,
I have Postfix + OpenLdap + DoveCot configuration, and it's running succesfuly,
i wantto convert users pop3 password NTPassword and LMPassword, so i ne plain passwor dof users,
how can i do that. (Normaly using perl's ntlmgen function i convert password , but in plain)
thanks in advance
On Wed, 2011-12-07 at 21:57 +0200, Selcuk Yazar wrote:
Hi,
I have Postfix + OpenLdap + DoveCot configuration, and it's running succesfuly,
i wantto convert users pop3 password NTPassword and LMPassword, so i ne plain passwor dof users,
how can i do that. (Normaly using perl's ntlmgen function i convert password , but in plain)
You need to enable userdb prefetch and make it work: http://wiki2.dovecot.org/UserDatabase/Prefetch
Once you can successfully log in with userdb prefetch enabled, add another field to pass_attrs:
pass_attrs = ..., =userdb_plaintext_pass=%w
- Now in your post-login script you should have PLAINTEXT_PASS environment containing the password.
Hi,
i applied settingsin below but dovecot says that
" prefetch(..@....edu.tr,IP_ADDRESS): passdb didn't return userdb entries, trying the next userdb "
so PLAINTEXT_PASS is empty
thanks in advance.
You need to enable userdb prefetch and make it work: http://wiki2.dovecot.org/UserDatabase/Prefetch
Once you can successfully log in with userdb prefetch enabled, add another field to pass_attrs:
pass_attrs = ..., =userdb_plaintext_pass=%w
- Now in your post-login script you should have PLAINTEXT_PASS environment containing the password.
-- Selçuk YAZAR http://www.selcukyazar.blogspot.com
On Thu, 2011-12-08 at 10:40 +0200, Selcuk Yazar wrote:
Hi,
i applied settingsin below but dovecot says that
" prefetch(..@....edu.tr,IP_ADDRESS): passdb didn't return userdb entries, trying the next userdb "
That's why I said make the userdb prefetch work first, the way described in:
You'll need to add stuff to your pass_attrs. It doesn't work automatically.
Hi,
i 'sorry, my mistake, it shold be pass_attrs = uid=user,userPassword=password, *=userdb_plaintext_pass=%w*
as you said it must contain *equal sign* before userdb_plaintext_pass=%w, i missed it.
thank you very much it works.!
selçuk
On Thu, Dec 8, 2011 at 10:55 AM, Timo Sirainen <tss@iki.fi> wrote:
On Thu, 2011-12-08 at 10:40 +0200, Selcuk Yazar wrote:
Hi,
i applied settingsin below but dovecot says that
" prefetch(..@....edu.tr,IP_ADDRESS): passdb didn't return userdb entries, trying the next userdb "
That's why I said make the userdb prefetch work first, the way described in:
You'll need to add stuff to your pass_attrs. It doesn't work automatically.
-- Selçuk YAZAR http://www.selcukyazar.blogspot.com
Hi again,
show plain passwrod works perfectly. But i have little problem about prefetch.
we have users inda openldap username@domain.edu.tr, so, users login their user name to check their emails. after I opened prefetc property,
users cannot acceees maildir directory, they use username@domain.edu.trdirectories and they cannot see emails on web (squireel mail). (becouse we migrate our server)
our structure domain\username\Maildir, but after prefetch thay try to look in webmail ( also outlook etc. client download email again) domain\username@domain.edu.tr\cur,new etc
can we fix this ?
thanks.
On Thu, Dec 8, 2011 at 10:58 AM, Selcuk Yazar <selcuk.yazar@gmail.com>wrote:
Hi,
i 'sorry, my mistake, it shold be pass_attrs = uid=user,userPassword=password, *=userdb_plaintext_pass=%w*
as you said it must contain *equal sign* before userdb_plaintext_pass=%w, i missed it.
thank you very much it works.!
selçuk
On Thu, Dec 8, 2011 at 10:55 AM, Timo Sirainen <tss@iki.fi> wrote:
On Thu, 2011-12-08 at 10:40 +0200, Selcuk Yazar wrote:
Hi,
i applied settingsin below but dovecot says that
" prefetch(..@....edu.tr,IP_ADDRESS): passdb didn't return userdb entries, trying the next userdb "
That's why I said make the userdb prefetch work first, the way described in:
You'll need to add stuff to your pass_attrs. It doesn't work automatically.
-- Selçuk YAZAR http://www.selcukyazar.blogspot.com
-- Selçuk YAZAR http://www.selcukyazar.blogspot.com
participants (2)
-
Selcuk Yazar
-
Timo Sirainen