Add TLS options for LDAP #1389
No reviewers
Labels
No labels
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "getz/continuwuity:ldap-tls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Optional StartTLS for LDAP and add option to skip TLS verification.
@RatCornu would you mind taking a look.
@ -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}"))))?;Why remove the error messages?
It's not removed look at the function created.
In which case the double-mapping of the error is unnecesary
@Jade wrote in #1389/files (comment):
double-mapping is required to retain the user_dn thingy
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
0ae4eccf97a570f381d2Please add a changelog fragment to
changelog.d/describing your changes.Updated to address comment by @Jade, the error is only mapped once at the call site.
Missing a changelog, but otherwise looks good to squash merge
a570f381d23f2ab551a9This needs some manual intervention to regenerate config
3f2ab551a96599182220