Skip to content
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
4oo4:master
Open

Compatibility Update for SMA version 12.0#36
4oo4 wants to merge 2 commits intoArtisanByteCrafter:masterfrom
4oo4:master

Conversation

@4oo4
Copy link
Copy Markdown

@4oo4 4oo4 commented Feb 15, 2022

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

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-SMAServer cmdlet?

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
@ArtisanByteCrafter
Copy link
Copy Markdown
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.

@4oo4
Copy link
Copy Markdown
Author

4oo4 commented Feb 17, 2022

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

@4oo4 4oo4 changed the title WIP - Compatibility Update for SMA version 12.0 Compatibility Update for SMA version 12.0 Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants