ldap0r/Cargo.toml
finga 7b0e4b4a31 Password reset functionality
On the `reset` page an email address can be submitted. If an account
associated with the submitted email address an email is sent
containing an URL. This URL can be used to set a new password.

- Add GPLv3 for licensing
- Add dependencies
  - `rocket_contrib` to be able to use handlebar templates
  - `anyhow` to handle errors
  - `log` for logging
  - `ldap3` to communicate with a LDAP server
  - `lettre` and `lettre_email` to handle the generation of emails and
    to send them
  - `rand` to generate random keys
- Add `README.org` which is also used to generate `README.md`
- Add configuration parameters
  - domain
  - LDAP
    - server
    - base
    - filter
    - bind
    - password
- Change default development address to 0.0.0.0
- Add structs to handle data
- Add functions to handle password reset actions
  - `reset_prepare()` to generate a new key, send it to the requestor
    and keep it in the memory
  - `set_password()` to check for the key and set the password
- Add routes
- Add tests
- Add templates
  - `reset.html.hbs` to submit an email address
  - `reset_key.html.hbs` to set the new password
2020-07-06 15:30:45 +02:00

16 lines
341 B
TOML

[package]
name = "ldap0r"
version = "0.1.0"
authors = ["finga <finga@onders.org>"]
edition = "2018"
license = "GPL-3.0"
[dependencies]
rocket = "0.4"
rocket_contrib = { version = "0.4", default-features = false , features = ["handlebars_templates"]}
anyhow = "1.0"
log = "0.4"
ldap3 = "0.7"
lettre = "0.9"
lettre_email = "0.9"
rand = "0.7"