Created attachment 72882 [details]
Force X-MS-PolicyKey: 0
When using activesyncd to access my employer's Exchange server, I received a 403 error on the first command. Note that this was not a username/password error (that gives error 401).
The problem was fixed by including X-MS-PolicyKey: 0 in the request header (which triggered provisioning).
A patch to eas-connection.c is attached.
Created attachment 74201 [details] [review]
Same patch in git format-patch format
Just in case this format (with commit message) is more convenient
I've merged this into activesyncd master,