Skip to content

Commit

Permalink
AnyConnect server required useragent after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rrva committed Feb 2, 2024
1 parent 1b0a29c commit bf0a08c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions OpenConnectUI2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
CODE_SIGN_STYLE = Automatic;
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
CURRENT_PROJECT_VERSION = 773;
CURRENT_PROJECT_VERSION = 774;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 3563RJWBQP;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -406,7 +406,7 @@
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;
CODE_SIGN_STYLE = Automatic;
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
CURRENT_PROJECT_VERSION = 773;
CURRENT_PROJECT_VERSION = 774;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 3563RJWBQP;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -558,7 +558,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 773;
CURRENT_PROJECT_VERSION = 774;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 3563RJWBQP;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -592,7 +592,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 773;
CURRENT_PROJECT_VERSION = 774;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = 3563RJWBQP;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down
2 changes: 1 addition & 1 deletion OpenConnectUI2/Info-Debug.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleShortVersionString</key>
<string>"1.773"</string>
<key>CFBundleVersion</key>
<string>773</string>
<string>774</string>
<key>LSUIElement</key>
<true/>
<key>SMPrivilegedExecutables</key>
Expand Down
2 changes: 1 addition & 1 deletion OpenConnectUI2/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleShortVersionString</key>
<string>"1.773"</string>
<key>CFBundleVersion</key>
<string>773</string>
<string>774</string>
<key>LSUIElement</key>
<true/>
<key>SMPrivilegedExecutables</key>
Expand Down
2 changes: 1 addition & 1 deletion ToolX/Info-Debug.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleShortVersionString</key>
<string>"1.773"</string>
<key>CFBundleVersion</key>
<string>773</string>
<string>774</string>
<key>SMAuthorizedClients</key>
<array>
<string>identifier "se.rrva.OpenConnectUI2" and anchor apple generic and certificate leaf[subject.CN] = "Apple Development: Ragnar Rova (U34QC433V8)" and certificate 1[field.1.2.840.113635.100.6.2.1] /* exists */</string>
Expand Down
2 changes: 1 addition & 1 deletion ToolX/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleShortVersionString</key>
<string>"1.773"</string>
<key>CFBundleVersion</key>
<string>773</string>
<string>774</string>
<key>SMAuthorizedClients</key>
<array>
<string>anchor apple generic and identifier "se.rrva.OpenConnectUI2" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "3563RJWBQP")</string>
Expand Down
2 changes: 1 addition & 1 deletion ToolX/startOpenConnect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func doStartOpenConnect(
return
}
let command = """
\(String(describing: openConnect)) -b --pid-file /var/run/openconnect.pid -s "\(programPath) vpnc" --setuid=\(localUser) --user=$AD_USERNAME \(vpnHost)
\(String(describing: openConnect)) -b --pid-file /var/run/openconnect.pid -s "\(programPath) vpnc" --setuid=\(localUser) --useragent=AnyConnect --user=$AD_USERNAME \(vpnHost)
"""

do {
Expand Down

0 comments on commit bf0a08c

Please sign in to comment.