88 lines
1.9 KiB
Markdown
88 lines
1.9 KiB
Markdown
|
|
||
|
# Table of Contents
|
||
|
|
||
|
1. [ldap0r](#org5453f05)
|
||
|
1. [Installation](#org225ba27)
|
||
|
2. [Todo List](#org54f2856)
|
||
|
1. [Password reset <code>[5/10]</code>](#org09786dd)
|
||
|
2. [Configuration <code>[0/5]</code>](#orgb93c7a2)
|
||
|
3. [Login Section (not sure if going to happen)](#orga66a23f)
|
||
|
|
||
|
|
||
|
<a id="org5453f05"></a>
|
||
|
|
||
|
# ldap0r
|
||
|
|
||
|
So far `ldap0r` is simply a very small web application just to reset
|
||
|
LDAP passwords. An user enters its email address, receives an email
|
||
|
containing a link to reset its LDAP password, thats it so far.
|
||
|
|
||
|
|
||
|
<a id="org225ba27"></a>
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
A rust nightly toolchain which can be aquired via <https://rustup.rs>
|
||
|
is needed in order to successfully build `ldap0r`. Install `rustup`,
|
||
|
download rust nightly, then clone this repository, set the
|
||
|
toolchain inside the source directory to nightly, build and run it.
|
||
|
|
||
|
rustup toolchain install nightly
|
||
|
git clone https://git.onders.org/finga/ldap0r.git
|
||
|
cd ldap0r
|
||
|
rustup override set nightly
|
||
|
cargo run
|
||
|
|
||
|
The application can be configured with the `Rocket.toml`
|
||
|
configuration file.
|
||
|
|
||
|
|
||
|
<a id="org54f2856"></a>
|
||
|
|
||
|
## Todo List
|
||
|
|
||
|
|
||
|
<a id="org09786dd"></a>
|
||
|
|
||
|
### Password reset <code>[5/10]</code>
|
||
|
|
||
|
1. DONE Form to send resetlink
|
||
|
|
||
|
2. DONE Parse url with reset key
|
||
|
|
||
|
3. DONE Cleanup all unwraps
|
||
|
|
||
|
4. DONE Proper error handling
|
||
|
|
||
|
5. DONE Implement proper logging
|
||
|
|
||
|
6. TODO Make \`keys.lock()\` properly thread safe
|
||
|
|
||
|
7. TODO Check for existing keys
|
||
|
|
||
|
8. TODO Implement key validity timeout
|
||
|
|
||
|
9. TODO Implement proper tests
|
||
|
|
||
|
10. TODO Optionaly store key persistently between restarts
|
||
|
|
||
|
|
||
|
<a id="orgb93c7a2"></a>
|
||
|
|
||
|
### Configuration <code>[0/5]</code>
|
||
|
|
||
|
1. TODO Fix domain config
|
||
|
|
||
|
2. TODO Make size of key configurable
|
||
|
|
||
|
3. TODO Make key validity timeout
|
||
|
|
||
|
4. TODO Make it possible to send emails over encrypted connections
|
||
|
|
||
|
5. TODO Make html/text emails configurable
|
||
|
|
||
|
|
||
|
<a id="orga66a23f"></a>
|
||
|
|
||
|
### Login Section (not sure if going to happen)
|