1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added ldapSaveUserToFile option to help debug LDAP issues.

This commit is contained in:
Ylian Saint-Hilaire 2022-07-18 16:12:53 -07:00
parent 7e28bdd5a9
commit b3dd3d3613
9 changed files with 57 additions and 979 deletions

View file

@ -1483,7 +1483,12 @@ function deactivateACMEx() {
amtstack = new amt(wsstack);
amtstack.Get("AMT_SetupAndConfigurationService", function (stack, name, responses, status) {
if (status !== 200) {
console.log('Command not allowed. Status: ' + status);
if ((responses != null) && (responses.Header != null) && (typeof responses.Header.error == 'string')) {
console.log(responses.Header.error + ', Status: ' + status);
if (status == 600) { console.log('Check that Intel AMT is in ACM mode and that the password is correct.'); }
} else {
console.log('Command not allowed, Status: ' + status);
}
exit(1);
} else {
var sacs = responses.Body;