Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit fe00858

Browse files
ah-Gene Lee
authored andcommitted
Add delegate flag to fix permissions when querying linked SQL Servers (#26270)
1 parent 9efb5f1 commit fe00858

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Common/src/System/Net/ContextFlagsAdapterPal.Unix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ public ContextFlagMapping(Interop.NetSecurityNative.GssFlags gssFlag, ContextFla
2626
new ContextFlagMapping(Interop.NetSecurityNative.GssFlags.GSS_C_IDENTIFY_FLAG, ContextFlagsPal.InitIdentify),
2727
new ContextFlagMapping(Interop.NetSecurityNative.GssFlags.GSS_C_MUTUAL_FLAG, ContextFlagsPal.MutualAuth),
2828
new ContextFlagMapping(Interop.NetSecurityNative.GssFlags.GSS_C_REPLAY_FLAG, ContextFlagsPal.ReplayDetect),
29-
new ContextFlagMapping(Interop.NetSecurityNative.GssFlags.GSS_C_SEQUENCE_FLAG, ContextFlagsPal.SequenceDetect)
29+
new ContextFlagMapping(Interop.NetSecurityNative.GssFlags.GSS_C_SEQUENCE_FLAG, ContextFlagsPal.SequenceDetect),
30+
new ContextFlagMapping(Interop.NetSecurityNative.GssFlags.GSS_C_DELEG_FLAG, ContextFlagsPal.Delegate)
3031
};
3132

3233

src/System.Data.SqlClient/src/System/Data/SqlClient/SNI/SNIProxy.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public void GenSspiClientContext(SspiClientContextStatus sspiClientContextStatus
105105

106106
ContextFlagsPal requestedContextFlags = ContextFlagsPal.Connection
107107
| ContextFlagsPal.Confidentiality
108+
| ContextFlagsPal.Delegate
108109
| ContextFlagsPal.MutualAuth;
109110

110111
string serverSPN = System.Text.Encoding.UTF8.GetString(serverName);

0 commit comments

Comments
 (0)