This repository was archived by the owner on Aug 25, 2024. It is now read-only.
Compatibility Update for SMA version 12.0#36
Open
4oo4 wants to merge 2 commits intoArtisanByteCrafter:masterfrom
Open
Compatibility Update for SMA version 12.0#364oo4 wants to merge 2 commits intoArtisanByteCrafter:masterfrom
4oo4 wants to merge 2 commits intoArtisanByteCrafter:masterfrom
Conversation
Starting with KACE SMA 12.0, the headers `x-dell-api-version` becomes `x-kace-api-version`, and `x-dell-csrf-token` becomes `x-kace-csrf-token` https://support.quest.com/kb/276970/verifying-api-connection-with-postman
Owner
|
Hmm, there's several ways to handle something like this. I'm hesitant to simply replace the old header with the new as that would break existing installs. Perhaps a better approach would be to simply append both headers to the login request, that way the correct one is always present and the other harmless. Unfortunately I no longer work where I had my SMA, so I have no access to test anything. |
Author
|
Agreed, since Quest supports those older versions it should work for that. That's a great idea to use both headers, I didn't think about that. I just tested with sending both of them to our 12.0 appliance and it worked, so I updated my commit. So I think it could be merged once someone tests with an older version appliance. Cheers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Starting with KACE SMA 12.0, the headers
x-dell-api-versionbecomesx-kace-api-version, andx-dell-csrf-tokenbecomesx-kace-csrf-tokenhttps://support.quest.com/kb/276970/verifying-api-connection-with-postman
I'm guessing that some logic should also be added that can support the old and new version of the headers at the same time, if it's possible to query the SMA version and use the correct headers, or have the user supply this when they are calling the
Connect-SMAServercmdlet?