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.
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();