Add TLS options for LDAP #1389

Open
getz wants to merge 1 commit from getz/continuwuity:ldap-tls into main
First-time 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
First-time 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 next milestone 2026-02-20 14:13:37 +00:00
All checks were successful
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 5m16s
Required
Details
Checks / Prek / Clippy and Cargo Tests (pull_request) Successful in 14m13s
Required
Details
This pull request is blocked because it's outdated.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u ldap-tls:getz-ldap-tls
git switch getz-ldap-tls
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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.