Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

ldap authentication #233

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open

Conversation

cyberb
Copy link

@cyberb cyberb commented Oct 7, 2019

I would like to get your feedback on this.
Keep in mind this is my first rust experience.

At the moment my web fork sends plain text two headers username and key (password).
There are two options on how it can decide what mode to use (one or two auth fields to show) either by calling api auth_mode url (not implemented yet) or by checking its own config (not ideal).

src/lib.rs Outdated Show resolved Hide resolved
src/routes/auth.rs Outdated Show resolved Hide resolved
src/routes/auth.rs Show resolved Hide resolved
src/setup.rs Outdated Show resolved Hide resolved
src/env/config/mod.rs Outdated Show resolved Hide resolved
# Statically link SQLite (use the crate version provided by Diesel)
# The highest version which Diesel currently allows is 0.12.0
libsqlite3-sys = { version = "0.12.0", features = ["bundled"] }
ldap3 = "0.6.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This transitively adds a requirement on OpenSSL, which needs some native bindings. The docker build containers will need to be updated to support this requirement.

src/routes/auth.rs Show resolved Hide resolved
@cyberb cyberb force-pushed the development branch 2 times, most recently from 0d24cdf to 81219b1 Compare October 11, 2019 19:26
src/util.rs Outdated Show resolved Hide resolved
src/routes/auth.rs Outdated Show resolved Hide resolved
src/routes/auth.rs Outdated Show resolved Hide resolved
@AzureMarker
Copy link
Contributor

I'm currently working on adding the required OpenSSL libraries to the Docker containers, in addition to updating the Rust version. I will make a PR for this and after it's merged you can rebase on development to fix this PR's compilation issues.

@AzureMarker
Copy link
Contributor

@cyberb Can you put the new dependencies and LDAP code behind a feature flag?

@cyberb cyberb force-pushed the development branch 3 times, most recently from 6cd7139 to 410c9fd Compare October 21, 2019 14:59
Signed-off-by: Boris Rybalkin <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants