From cc024316c60bba1d0dd979195d93e61dde219738 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 8 Apr 2010 10:24:44 -0400 Subject: [PATCH] Some clients send a PROVISION command even when it's not told to do so by the server. We must check our provision setting when we receive a PROVISION request, and send back a NOT_DEFINED status code if no policy exists on the server. --- framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php index 319d602ab..0e777788a 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php @@ -100,6 +100,11 @@ class Horde_ActiveSync_Request_Provision extends Horde_ActiveSync_Request_Base return $this->_globalError(self::STATUS_PROTERROR); } + /* Check to be sure that we *need* to PROVISION */ + if ($this->_provisioning === false) { + $policyStatus = self::STATUS_NOTDEFINED; + } + /* POLICYKEY is only sent by client in phase 3 */ if ($this->_decoder->getElementStartTag(SYNC_PROVISION_POLICYKEY)) { $policykey = $this->_decoder->getElementContent(); -- 2.11.0