Add TLS options for LDAP #1389

Merged
Jade merged 4 commits from getz/continuwuity:ldap-tls into main 2026-04-23 17:39:26 +00:00
Contributor

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

@RatCornu would you mind taking a look.

Optional StartTLS for LDAP and add option to skip TLS verification. @RatCornu would you mind taking a look.
Add LDAP options for TLS
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 5m16s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 14m13s
0ae4eccf97
Optional StartTLS for LDAP and add option to skip TLS verification.
@ -1400,2 +1419,3 @@
let (conn, mut ldap) = Self::create_ldap_connection(config, uri.as_str())
.await
.map_err(|e| err!(Ldap(error!(?user_dn, "LDAP connection setup error: {e}"))))?;
.map_err(|e| err!(Ldap(error!(%user_dn, "{e}"))))?;
Owner

Why remove the error messages?

Why remove the error messages?
Author
Contributor

It's not removed look at the function created.

It's not removed look at the function created.
Owner

In which case the double-mapping of the error is unnecesary

In which case the double-mapping of the error is unnecesary
Owner

@Jade wrote in #1389/files (comment):

In which case the double-mapping of the error is unnecesary

double-mapping is required to retain the user_dn thingy

@Jade wrote in https://forgejo.ellis.link/continuwuation/continuwuity/pulls/1389/files#issuecomment-24296: > In which case the double-mapping of the error is unnecesary double-mapping is required to retain the user_dn thingy
Contributor

This looks good to me: maybe it can be a good idea to add that both options are less secure than using TLS but I don't know the codebase enough to say if it's needed or not

This looks good to me: maybe it can be a good idea to add that both options are less secure than using TLS but I don't know the codebase enough to say if it's needed or not
ginger added this to the (deleted) milestone 2026-02-20 14:13:37 +00:00
nex requested review from Jade 2026-03-27 00:43:28 +00:00
getz force-pushed ldap-tls from 0ae4eccf97
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 5m16s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 14m13s
to a570f381d2
Some checks are pending
Check Changelog / Check for changelog (pull_request_target) Successful in 10s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m15s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 26m26s
Checks / Changelog / Check changelog is added (pull_request_target) Waiting to run
2026-03-28 16:58:04 +00:00
Compare

Please add a changelog fragment to changelog.d/ describing your changes.

<!-- changelog-check-action --> Please add a changelog fragment to `changelog.d/` describing your changes.
Author
Contributor

Updated to address comment by @Jade, the error is only mapped once at the call site.

Updated to address comment by @Jade, the error is only mapped once at the call site.
Jade approved these changes 2026-04-08 14:04:46 +00:00
Owner

Missing a changelog, but otherwise looks good to squash merge

Missing a changelog, but otherwise looks good to squash merge
Jade force-pushed ldap-tls from a570f381d2
Some checks are pending
Check Changelog / Check for changelog (pull_request_target) Successful in 10s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m15s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 26m26s
Checks / Changelog / Check changelog is added (pull_request_target) Waiting to run
to 3f2ab551a9
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m18s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m35s
2026-04-15 13:29:55 +00:00
Compare
Owner

This needs some manual intervention to regenerate config

This needs some manual intervention to regenerate config
Jade force-pushed ldap-tls from 3f2ab551a9
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m18s
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 9s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 8m35s
to 6599182220
Some checks failed
Checks / Changelog / Check changelog is added (pull_request_target) Failing after 8s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m18s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
2026-04-23 17:33:20 +00:00
Compare
docs: Changelog
All checks were successful
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 32s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m35s
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 9m11s
4cc8b4e616
Jade merged commit 980bd475b6 into main 2026-04-23 17:39:26 +00:00
Jade referenced this pull request from a commit 2026-04-23 17:39:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
continuwuation/continuwuity!1389
No description provided.