Hi,
is it possible to run a post-login script on proxy side? When a user
is 'proxied' away, the standard post-login script seems to be skipped.
I want to update last login datetime but only proxy has access to user
database (so i cannot run it on backends).
azur
On July 11, 2017 at 7:51 PM azurit@pobox.sk wrote:
Hi,
is it possible to run a post-login script on proxy side? When a user
is 'proxied' away, the standard post-login script seems to be skipped.
I want to update last login datetime but only proxy has access to user
database (so i cannot run it on backends).azur
Sorry, imap-login starts proxying the connection on success, and won't execute anything.
Aki
Citát Aki Tuomi aki.tuomi@dovecot.fi:
On July 11, 2017 at 7:51 PM azurit@pobox.sk wrote:
Hi,
is it possible to run a post-login script on proxy side? When a user is 'proxied' away, the standard post-login script seems to be skipped. I want to update last login datetime but only proxy has access to user database (so i cannot run it on backends).
azur
Sorry, imap-login starts proxying the connection on success, and
won't execute anything.Aki
Ok, any workaround for what i need to do (see above)?
On July 12, 2017 at 10:16 AM azurit@pobox.sk wrote:
Citát Aki Tuomi aki.tuomi@dovecot.fi:
On July 11, 2017 at 7:51 PM azurit@pobox.sk wrote:
Hi,
is it possible to run a post-login script on proxy side? When a user is 'proxied' away, the standard post-login script seems to be skipped. I want to update last login datetime but only proxy has access to user database (so i cannot run it on backends).
azur
Sorry, imap-login starts proxying the connection on success, and
won't execute anything.Aki
Ok, any workaround for what i need to do (see above)?
Update last-login on backend? =)
Aki
Citát Aki Tuomi aki.tuomi@dovecot.fi:
On July 12, 2017 at 10:16 AM azurit@pobox.sk wrote:
Citát Aki Tuomi aki.tuomi@dovecot.fi:
On July 11, 2017 at 7:51 PM azurit@pobox.sk wrote:
Hi,
is it possible to run a post-login script on proxy side? When a user is 'proxied' away, the standard post-login script seems to be skipped. I want to update last login datetime but only proxy has access to user database (so i cannot run it on backends).
azur
Sorry, imap-login starts proxying the connection on success, and won't execute anything.
Aki
Ok, any workaround for what i need to do (see above)?
Update last-login on backend? =)
Aki
Backends don't have access to user database and i wanted to keep it
like this :(
On 12 Jul 2017, at 10.36, azurit@pobox.sk wrote:
Backends don't have access to user database and i wanted to keep it like this :(
Then probably your only possibility is to update last_login information with the authentication policy framework introduced in dovecot 2.2.25: https://wiki2.dovecot.org/Authentication/Policy
just build your custom auth policy server that updates last_login information after successfull passdb authentication
Sami
Citát Sami Ketola sami.ketola@dovecot.fi:
On 12 Jul 2017, at 10.36, azurit@pobox.sk wrote:
Backends don't have access to user database and i wanted to keep it
like this :(Then probably your only possibility is to update last_login
information with the authentication policy framework introduced in dovecot 2.2.25:
https://wiki2.dovecot.org/Authentication/Policyjust build your custom auth policy server that updates last_login
information after successfull passdb authenticationSami
Thanks for suggestion but this seems too complex for such simple
thing. I will probably create a small cron script which will parse
logs and update last login datetime in DB.
azur
On July 12, 2017 at 2:35 PM azurit@pobox.sk wrote:
Citát Sami Ketola sami.ketola@dovecot.fi:
On 12 Jul 2017, at 10.36, azurit@pobox.sk wrote:
Backends don't have access to user database and i wanted to keep it
like this :(Then probably your only possibility is to update last_login
information with the authentication policy framework introduced in dovecot 2.2.25:
https://wiki2.dovecot.org/Authentication/Policyjust build your custom auth policy server that updates last_login
information after successfull passdb authenticationSami
Thanks for suggestion but this seems too complex for such simple
thing. I will probably create a small cron script which will parse
logs and update last login datetime in DB.azur
Do you object backends talking to your proxies? If not, add a small
service last-update-script-service { inet_listener { port = 9421 } executable = script last-update }
and speak to it from backend? bit hackish, I agree.
Aki
Citát Aki Tuomi aki.tuomi@dovecot.fi:
On July 12, 2017 at 2:35 PM azurit@pobox.sk wrote:
Citát Sami Ketola sami.ketola@dovecot.fi:
On 12 Jul 2017, at 10.36, azurit@pobox.sk wrote:
Backends don't have access to user database and i wanted to keep it like this :(
Then probably your only possibility is to update last_login information with the authentication policy framework introduced in dovecot 2.2.25: https://wiki2.dovecot.org/Authentication/Policy
just build your custom auth policy server that updates last_login information after successfull passdb authentication
Sami
Thanks for suggestion but this seems too complex for such simple thing. I will probably create a small cron script which will parse logs and update last login datetime in DB.
azur
Do you object backends talking to your proxies? If not, add a small
service last-update-script-service { inet_listener { port = 9421 } executable = script last-update }
and speak to it from backend? bit hackish, I agree.
Aki
Thank you again for suggestion, i, finally, decided to create a cron
script and parse logs (which is doing MUCH less load on database as it
is not updating datetime every login [which can mean every few seconds
per user]).
azur
participants (3)
-
Aki Tuomi
-
azurit@pobox.sk
-
Sami Ketola