feat: Add TLS options for LDAP (#1389)

Optional StartTLS for LDAP and add option to skip TLS verification.

Co-authored-by: Jade Ellis <jade@ellis.link>
Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1389
Reviewed-by: Jade Ellis <jade@ellis.link>
This commit is contained in:
Getz Mikalsen
2026-04-23 17:39:25 +00:00
committed by Ellis Git
parent 19204b097d
commit 980bd475b6
4 changed files with 43 additions and 4 deletions
+12
View File
@@ -2324,6 +2324,18 @@ pub struct LdapConfig {
#[serde(default)]
pub uri: Option<Url>,
/// StartTLS for LDAP connections.
///
/// default: false
#[serde(default)]
pub use_starttls: bool,
/// Skip TLS certificate verification, possibly dangerous.
///
/// default: false
#[serde(default)]
pub disable_tls_verification: bool,
/// Root of the searches.
///
/// example: "ou=users,dc=example,dc=org"