diff --git a/go.mod b/go.mod index f974b6de..6f1bce2a 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/jritsema/gotoolbox v0.8.0 - github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.2.0 + github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.2.1 go.etcd.io/bbolt v1.3.9 golang.org/x/text v0.14.0 ) diff --git a/go.sum b/go.sum index a8ac00ab..cec0ca67 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,8 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.2.0 h1:FzWtbRUubVAqTvwZOxO8SizsMDLFDlT41Dnt4KZrIP0= -github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.2.0/go.mod h1:7aSDcTtCGiyD2pjqguDCjqFvI/Lp603FvzypHOen3zk= +github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.2.1 h1:c9v+RydwQkjGoZiFeD8NwTQW5O97EYG3fMxZPDyIeK4= +github.com/open-amt-cloud-toolkit/go-wsman-messages/v2 v2.2.1/go.mod h1:7aSDcTtCGiyD2pjqguDCjqFvI/Lp603FvzypHOen3zk= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= diff --git a/internal/features/explorer/explorer.go b/internal/features/explorer/explorer.go index 86b4bc35..8191a4e8 100644 --- a/internal/features/explorer/explorer.go +++ b/internal/features/explorer/explorer.go @@ -56,7 +56,7 @@ func GetSupportedWsmanClasses(className string) []Class { var ClassList = []Class{ {Name: alarmclock.AMT_AlarmClockService, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}, {Name: "AddAlarm"}}}, {Name: auditlog.AMT_AuditLog, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}, {Name: "ReadRecords"}}}, - {Name: authorization.AMT_AuthorizationService, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}, {Name: "EnumerateUserAclEntries"}, {Name: "GetAclEnabledState"}, {Name: "GetAdminAclEntry"}, {Name: "GetAdminAclEntryStatus"}, {Name: "GetAdminNetAclEntryStatus"}, {Name: "GetUserAclEntryEx"}, {Name: "RemoveUserAclEntry"}, {Name: "SetAclEnabledState"}, {Name: "SetAdminACLEntryEx"}}}, + {Name: authorization.AMT_AuthorizationService, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}, {Name: "EnumerateUserAclEntries"}, {Name: "GetAclEnabledState"}, {Name: "GetAdminAclEntry"}, {Name: "GetAdminAclEntryStatus"}, {Name: "GetAdminNetAclEntryStatus"}, {Name: "GetUserAclEntryEx"}, {Name: "RemoveUserAclEntry"}, {Name: "SetAclEnabledState"}, {Name: "SetAdminAclEntryEx"}}}, {Name: amtboot.AMT_BootCapabilities, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}}}, {Name: amtboot.AMT_BootSettingData, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}, {Name: "Put"}}}, {Name: environmentdetection.AMT_EnvironmentDetectionSettingData, MethodList: []Method{{Name: "Get"}, {Name: "Enumerate"}, {Name: "Pull"}, {Name: "Put"}}}, @@ -279,9 +279,9 @@ func Init(wsman wsman.Messages) { return *response.Message, err }, } - Lookup[authorization.AMT_AuthorizationService]["SetAdminACLEntryEx"] = Method{ + Lookup[authorization.AMT_AuthorizationService]["SetAdminAclEntryEx"] = Method{ Execute: func(value string) (client.Message, error) { - response, err := wsman.AMT.AuthorizationService.SetAdminACLEntryEx("admin", "P@ssw0rd") + response, err := wsman.AMT.AuthorizationService.SetAdminAclEntryEx("admin", "P@ssw0rd") return *response.Message, err }, }