1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
//! Unix GSSAPI (Generic Security Services API) implementation.
//!
//! This module provides Kerberos authentication support on Linux and macOS
//! using the GSSAPI from `libgssapi_krb5`.
//!
//! # Requirements
//!
//! - `libkrb5` and `libgssapi_krb5` installed
//! - Valid Kerberos ticket (run `kinit` before connecting)
//! - Properly configured `/etc/krb5.conf`
//!
//! # Note
//!
//! NTLM is **not** supported on Unix platforms. Only Kerberos authentication
//! is available through GSSAPI.
// GSSAPI spec-defined constants and FFI types; full set defined for completeness
pub use GssapiContext;
pub use ;
/// Checks if GSSAPI is available on this system.
/// Checks if a valid Kerberos ticket exists.
///
/// # Returns
///
/// `true` if a valid TGT exists in the credential cache, `false` otherwise.