alpaca icon indicating copy to clipboard operation
alpaca copied to clipboard

Avoid sin-binning my account after a password change

Open marcelocantos opened this issue 5 years ago • 2 comments

If my AD account password changes, alpaca will keep retrying after a password failure. In such cases, alpaca should prompt for a new password. Same goes for mistyped passwords.

marcelocantos avatar May 19 '19 01:05 marcelocantos

I'd like to avoid having any interactive prompts in alpaca, so that it can be run as a daemon or some other non-interactive scenario.

Another way to avoid getting a user's account blocked could be to maintain a list of unresponsive proxies, where the definition of "unresponsive" includes returning a bad credentials error. Mozilla's PAC documentation says that this is what the browser does:

The browser will automatically retry a previously unresponsive proxy after 30 minutes. Additional attempts will continue beginning at one hour, always adding 30 minutes to the elapsed time between attempts.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_(PAC)_file#Description

Hopefully this is enough to avoid getting blocked, but it's possible that some enterprises have strict enough rules that they will still block users who retry bad passwords after 30 minutes.

samuong avatar May 31 '19 23:05 samuong

There should not be any immediate retries. If that's how the browser implements a backoff system then sounds great however it should also check if the password has changed and re-enable immediately

rtfmoz2 avatar Apr 03 '22 08:04 rtfmoz2