Skip to content

Commit 36c4db8

Browse files
author
david.kotval
committed
wip: Attempting to enable libgssapi for tiberius
1 parent aa42911 commit 36c4db8

File tree

3 files changed

+71
-4
lines changed

3 files changed

+71
-4
lines changed

Cargo.lock

Lines changed: 65 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connectorx/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ uuid = {version = "0.8", optional = true}
5858
j4rs = {version = "0.13", optional = true}
5959
datafusion = {version = "14", optional = true}
6060

61+
[target.'cfg(unix)'.dependencies]
62+
libgssapi = { version = "0.4.5", optional = true, default-features = false }
63+
6164
[lib]
6265
crate-type = ["cdylib", "rlib"]
6366
name = "connectorx"
@@ -69,7 +72,7 @@ iai = "0.1"
6972
pprof = {version = "0.5", features = ["flamegraph"]}
7073

7174
[features]
72-
all = ["src_sqlite", "src_postgres", "src_mysql", "src_mssql", "src_oracle", "src_bigquery", "src_csv", "src_dummy", "dst_arrow", "dst_arrow2", "federation", "fed_exec"]
75+
all = ["src_sqlite", "src_postgres", "src_mysql", "src_mssql", "src_oracle", "src_bigquery", "src_csv", "src_dummy", "dst_arrow", "dst_arrow2", "federation", "fed_exec", "integrated-auth-gssapi"]
7376
branch = []
7477
default = ["fptr"]
7578
dst_arrow = ["arrow"]
@@ -99,5 +102,6 @@ src_postgres = [
99102
src_sqlite = ["rusqlite", "r2d2_sqlite", "fallible-streaming-iterator", "r2d2", "urlencoding"]
100103
federation = ["j4rs"]
101104
fed_exec = ["datafusion", "tokio"]
105+
integrated-auth-gssapi = ["libgssapi"]
102106
[package.metadata.docs.rs]
103107
features = ["all"]

connectorx/src/sources/mssql/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn mssql_config(url: &Url) -> Config {
6363
// Using SQL Server authentication.
6464
#[allow(unused)]
6565
let params: HashMap<String, String> = url.query_pairs().into_owned().collect();
66-
#[cfg(windows)]
66+
#[cfg_attr(any(target_os = "windows", feature = "integrated-auth-gssapi"))]
6767
match params.get("trusted_connection") {
6868
// pefer trusted_connection if set to true
6969
Some(v) if v == "true" => {

0 commit comments

Comments
 (0)