Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
include computer name in the GP cookie
The GlobalProtect "cookie" is an overstuffed monstrosity, due to the requirement to retain a few random, non-secret values in order to logout successfully (see gpst_bye): authcookie=d41d8cd98f00b204e9800998ecf8427e&portal=Gateway-X&user=user.name&domain=big-corp Until now, I've avoided including the computer field in this cookie, on the assumption that it can reproduced at any time using vpninfo->localname. However, it appears that this value can't always be reproduced correctly when running under NetworkManager: dlenski/network-manager-openconnect#7 In order to be more robust, this patch therefore also includes the local hostname in the cookie: authcookie=d41d8cd98f00b204e9800998ecf8427e&portal=Gateway-X&user=user.name&domain=big-corp&computer=hostname
- Loading branch information
Showing
3 changed files
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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