2020-02-13 00:43:01 +01:00
|
|
|
[package]
|
|
|
|
name = "kanidm_unix_int"
|
|
|
|
description = "Kanidm Unix Integration Clients"
|
|
|
|
documentation = "https://docs.rs/kanidm/latest/kanidm/"
|
2022-10-01 08:08:51 +02:00
|
|
|
|
2023-06-27 03:38:22 +02:00
|
|
|
version = { workspace = true }
|
|
|
|
authors = { workspace = true }
|
|
|
|
rust-version = { workspace = true }
|
|
|
|
edition = { workspace = true }
|
|
|
|
license = { workspace = true }
|
|
|
|
homepage = { workspace = true }
|
|
|
|
repository = { workspace = true }
|
2020-02-13 00:43:01 +01:00
|
|
|
|
2023-02-28 02:39:39 +01:00
|
|
|
[features]
|
|
|
|
default = ["unix"]
|
|
|
|
unix = []
|
2023-05-30 11:51:12 +02:00
|
|
|
selinux = ["dep:selinux"]
|
2023-11-09 04:11:23 +01:00
|
|
|
tpm = ["kanidm-hsm-crypto/tpm"]
|
2020-02-13 00:43:01 +01:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "kanidm_unixd"
|
2024-06-17 00:21:25 +02:00
|
|
|
path = "src/bin/kanidm_unixd.rs"
|
2023-02-28 02:39:39 +01:00
|
|
|
required-features = ["unix"]
|
2023-10-22 13:16:42 +02:00
|
|
|
test = true
|
|
|
|
doctest = false
|
2020-02-13 00:43:01 +01:00
|
|
|
|
2021-03-13 03:33:15 +01:00
|
|
|
[[bin]]
|
|
|
|
name = "kanidm_unixd_tasks"
|
2024-06-17 00:21:25 +02:00
|
|
|
path = "src/bin/kanidm_unixd_tasks.rs"
|
2023-02-28 02:39:39 +01:00
|
|
|
required-features = ["unix"]
|
2023-10-22 13:16:42 +02:00
|
|
|
test = true
|
|
|
|
doctest = false
|
2021-03-13 03:33:15 +01:00
|
|
|
|
2020-02-13 00:43:01 +01:00
|
|
|
[[bin]]
|
|
|
|
name = "kanidm_ssh_authorizedkeys"
|
2024-06-17 00:21:25 +02:00
|
|
|
path = "src/bin/kanidm_ssh_authorizedkeys.rs"
|
2023-02-28 02:39:39 +01:00
|
|
|
required-features = ["unix"]
|
2023-10-22 13:16:42 +02:00
|
|
|
test = true
|
|
|
|
doctest = false
|
2020-02-13 00:43:01 +01:00
|
|
|
|
2020-02-15 01:27:25 +01:00
|
|
|
[[bin]]
|
2023-04-24 11:47:52 +02:00
|
|
|
name = "kanidm-unix"
|
2024-06-17 00:21:25 +02:00
|
|
|
path = "src/bin/kanidm-unix.rs"
|
2023-02-28 02:39:39 +01:00
|
|
|
required-features = ["unix"]
|
2023-10-22 13:16:42 +02:00
|
|
|
test = true
|
|
|
|
doctest = false
|
2023-02-28 02:39:39 +01:00
|
|
|
|
|
|
|
[lib]
|
2024-06-17 00:21:25 +02:00
|
|
|
name = "kanidm_unix_resolver"
|
2023-02-28 02:39:39 +01:00
|
|
|
path = "src/lib.rs"
|
2023-10-22 13:16:42 +02:00
|
|
|
test = true
|
|
|
|
doctest = false
|
2020-02-29 05:02:14 +01:00
|
|
|
|
2020-02-13 00:43:01 +01:00
|
|
|
[dependencies]
|
2023-07-24 09:10:37 +02:00
|
|
|
async-trait.workspace = true
|
2024-06-17 00:21:25 +02:00
|
|
|
# base64urlsafedata = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
bytes = { workspace = true }
|
2022-10-01 08:08:51 +02:00
|
|
|
clap = { workspace = true, features = ["derive", "env"] }
|
2024-06-17 00:21:25 +02:00
|
|
|
# csv = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
futures = { workspace = true }
|
2023-07-24 02:05:10 +02:00
|
|
|
hashbrown = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
libc = { workspace = true }
|
2024-06-17 00:21:25 +02:00
|
|
|
# libsqlite3-sys = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
lru = { workspace = true }
|
|
|
|
kanidm_client = { workspace = true }
|
|
|
|
kanidm_proto = { workspace = true }
|
2023-11-09 04:11:23 +01:00
|
|
|
kanidm-hsm-crypto = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
kanidm_lib_crypto = { workspace = true }
|
|
|
|
kanidm_lib_file_permissions = { workspace = true }
|
2024-06-17 00:21:25 +02:00
|
|
|
kanidm_unix_common = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
notify-debouncer-full = { workspace = true }
|
|
|
|
rpassword = { workspace = true }
|
|
|
|
rusqlite = { workspace = true }
|
2023-05-30 11:51:12 +02:00
|
|
|
selinux = { workspace = true, optional = true }
|
2022-10-01 08:08:51 +02:00
|
|
|
serde = { workspace = true, features = ["derive"] }
|
2023-06-27 03:38:22 +02:00
|
|
|
serde_json = { workspace = true }
|
|
|
|
sketching = { workspace = true }
|
2024-10-02 04:12:13 +02:00
|
|
|
time = { workspace = true, features = ["std"] }
|
2023-06-27 03:38:22 +02:00
|
|
|
toml = { workspace = true }
|
2023-11-27 07:30:21 +01:00
|
|
|
tokio = { workspace = true, features = [
|
|
|
|
"rt",
|
|
|
|
"fs",
|
|
|
|
"macros",
|
|
|
|
"sync",
|
|
|
|
"time",
|
|
|
|
"net",
|
|
|
|
"io-util",
|
|
|
|
] }
|
2022-10-01 08:08:51 +02:00
|
|
|
tokio-util = { workspace = true, features = ["codec"] }
|
2023-06-27 03:38:22 +02:00
|
|
|
tracing = { workspace = true }
|
2023-07-28 02:48:56 +02:00
|
|
|
uuid = { workspace = true }
|
2023-06-27 03:38:22 +02:00
|
|
|
walkdir = { workspace = true }
|
2020-12-28 00:41:16 +01:00
|
|
|
|
2024-02-17 01:11:32 +01:00
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
2024-02-17 02:30:08 +01:00
|
|
|
sd-notify.workspace = true
|
2024-02-17 01:11:32 +01:00
|
|
|
prctl.workspace = true
|
|
|
|
|
2024-02-17 02:30:08 +01:00
|
|
|
[target.'cfg(not(target_family = "windows"))'.dependencies]
|
|
|
|
kanidm_utils_users = { workspace = true }
|
|
|
|
|
2024-06-15 07:20:11 +02:00
|
|
|
[target.'cfg(not(target_os = "illumos"))'.dependencies]
|
|
|
|
mimalloc = { workspace = true }
|
|
|
|
|
2020-02-13 00:43:01 +01:00
|
|
|
[dev-dependencies]
|
2023-06-27 03:38:22 +02:00
|
|
|
kanidmd_core = { workspace = true }
|
2023-09-29 04:02:13 +02:00
|
|
|
kanidmd_testkit = { workspace = true }
|
2021-02-13 04:46:22 +01:00
|
|
|
|
|
|
|
[build-dependencies]
|
2022-10-01 08:08:51 +02:00
|
|
|
clap = { workspace = true, features = ["derive"] }
|
2023-06-27 03:38:22 +02:00
|
|
|
clap_complete = { workspace = true }
|
2023-08-01 09:25:32 +02:00
|
|
|
kanidm_build_profiles = { workspace = true }
|
2024-10-15 04:27:48 +02:00
|
|
|
|
|
|
|
## Debian packaging
|
|
|
|
# We only package unixd itself here as shared libraries must be packaged separarately due to multiarch rules.
|
|
|
|
[package.metadata.deb]
|
|
|
|
name = "kanidm-unixd"
|
|
|
|
maintainer = "James Hodgkinson <james@terminaloutcomes.com>"
|
|
|
|
# Can't use $auto depends because the name of libssl3 varies by distro and version
|
|
|
|
depends = [
|
|
|
|
"libc6",
|
|
|
|
"tpm-udev",
|
|
|
|
"libssl3 | libssl3t64",
|
|
|
|
"libpam-kanidm",
|
|
|
|
"libnss-kanidm"
|
|
|
|
]
|
|
|
|
section = "network"
|
|
|
|
priority = "optional"
|
|
|
|
changelog = "../../target/debian/changelog" # Generated by platform/debian/build_debs.sh
|
|
|
|
assets = [
|
|
|
|
[ "target/release/kanidm_ssh_authorizedkeys", "usr/sbin/", "755" ],
|
|
|
|
[ "target/release/kanidm_unixd_tasks", "usr/sbin/", "755" ],
|
|
|
|
[ "target/release/kanidm_unixd", "usr/sbin/", "755" ],
|
|
|
|
[ "target/release/kanidm-unix", "usr/sbin/", "755" ],
|
|
|
|
[ "../../examples/unixd-safe-default", "etc/kanidm/unixd", "644" ],
|
|
|
|
[ "../../examples/kanidm-safe-default", "etc/kanidm/config", "644" ],
|
|
|
|
[ "../../examples/kanidm", "usr/share/kanidm-unixd/", "444" ],
|
|
|
|
[ "../../examples/unixd", "usr/share/kanidm-unixd/", "444" ],
|
|
|
|
]
|
|
|
|
maintainer-scripts = "debian/"
|
|
|
|
systemd-units = [
|
|
|
|
{ unit-name = "kanidm-unixd", enable = true},
|
|
|
|
{ unit-name = "kanidm-unixd-tasks", enable = true},
|
|
|
|
]
|