Bug 2376504 - HTTP CONNECT response: HTTP/1.1 401 Unauthorized - Cisco AnyConnect external authentication (SAML)
Summary: HTTP CONNECT response: HTTP/1.1 401 Unauthorized - Cisco AnyConnect external ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: openconnect
Version: 42
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Nikos Mavrogiannopoulos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-05 07:43 UTC by romsu
Modified: 2026-06-08 17:44 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-06-08 17:44:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
manually patched git commit 94e0b16c011b7b88708b8a8505fac6bfbe2e3cca (2.74 MB, application/octet-stream)
2025-11-17 12:01 UTC, Moritz Baumann
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Gitlab openconnect openconnect issues 659 0 None closed Got inappropriate HTTP CONNECT response: HTTP/1.1 401 Unauthorized - Cisco AnyConnect external authentication (SAML) whe... 2025-07-05 07:43:18 UTC

Description romsu 2025-07-05 07:43:18 UTC
Description of problem: got inappropriate HTTP CONNECT response: HTTP/1.1 401 Unauthorized - Cisco AnyConnect external authentication (SAML) when connecting to /CSCOSSLC/tunnel


Version-Release number of selected component (if applicable): 9.12-7


How reproducible: Add and activate a new VPN connection (Cisco AnyConnect) in NetworkManager


Steps to Reproduce:
1. Add a connection name
2. Add the gateway address
3. Add the agent name (AnyConnect)
4. Leave everything else unchanged
5. Complete SAML authentication

Actual results: HTTP/1.1 401 Unauthorized 


Expected results: successful authorization


Additional info: This issue has already been fixed in newer OpenConnect versions, which is why an update is needed.

Comment 1 Moritz Baumann 2025-11-17 12:01:54 UTC
Created attachment 2114777 [details]
manually patched git commit 94e0b16c011b7b88708b8a8505fac6bfbe2e3cca

pulled source rpm and applied this commit to it

https://gitlab.com/openconnect/openconnect/-/commit/94e0b16c011b7b88708b8a8505fac6bfbe2e3cca

We need this ( --no-external-auth) to connect against my universities cisco-annyconnect, and --no-external-auth is not exposed via NetworkManager-openconnect-gui

Comment 2 Moritz Baumann 2025-11-17 12:06:04 UTC
ok description is unclear.

The attached file is the openconnect source rpm of F43 with the git commit patch applied.

I just realized that this was filed against F42. My srpm if for F43

Comment 3 Jan Hamal Dvořák 2026-03-20 13:57:03 UTC
Hi. I am confirming the existence of the issue and this being fixed upstream.

Except in my case (SMS 2FA) back-porting just the above patch did not suffice. I had to bump to the latest master.

Comment 4 romsu 2026-03-20 14:46:03 UTC
Well, this issue still affects openconnect-9.12-9 provided in the Fedora 43 repositories.

Comment 5 Fedora Release Engineering 2026-05-06 13:27:44 UTC
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '42'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 42 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Jan Hamal Dvořák 2026-05-28 08:19:38 UTC
Confirmed in Fedora 44.

Comment 7 Aoife Moloney 2026-06-08 17:44:30 UTC
Fedora Linux 42 entered end-of-life (EOL) status on 2026-05-27.

Fedora Linux 42 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.