Improved ACM activation error message.
Ylian Saint-Hilaire committed
Jun 30, 2021 at 13:20 UTC
d8d9e46cbe8b1733f24be4e1c623e90f4594b629
1 file changed
+9
-1
amtmanager.js
+9
-1
@@ -1887,7 +1887,15 @@ module.exports.CreateAmtManager = function (parent) {
1887
} else {
1888
// We are not in CCM, go to CCM now
1889
if ((amtPolicy == 4) || ((amtPolicy == 3) && (ccmPolicy == 2))) { activateIntelAmtCcm(dev, mesh.amt.password); } // If we are in full automatic or ACM with CCM allowed, setup CCM.
1890
- else { dev.consoleMsg("No opportunity for ACM activation."); removeAmtDevice(dev, 38); return false; } // We are not in CCM and policy restricts use of CCM, so exit now.
1890
+ else {
1891
+ // Unable to find an activation match.
1892
+ var trustedFqdn = null;
1893
+ if (dev.mpsConnection.tag.meiState.OsDnsSuffix != null) { trustedFqdn = dev.mpsConnection.tag.meiState.OsDnsSuffix; }
1894
+ if (dev.mpsConnection.tag.meiState.DnsSuffix != null) { trustedFqdn = dev.mpsConnection.tag.meiState.DnsSuffix; }
1895
+ dev.consoleMsg("No opportunity for ACM activation, trusted FQDN: " + ((trustedFqdn == null)?"(Not Set)":trustedFqdn));
1896
+ removeAmtDevice(dev, 38);
1897
+ return false; // We are not in CCM and policy restricts use of CCM, so exit now.
1898
+ }
1899
}
1900
} else {
1901
// Found a certificate to activate to ACM.