stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
3.53k stars 135 forks source link

[enhancement]: Implement FreeIPA password hash algorithm #538

Open DodoLeDev opened 2 weeks ago

DodoLeDev commented 2 weeks ago

Which feature or improvement would you like to request?

Stalwart officially supports the PBKDF hash algorithm, and FreeIPA uses it as default.

It would be awesome to make Stalwart working flawlessly with this LDAP provider.

Is your feature request related to a problem?

However, Stalwart don't understand FreeIPA password hash syntax.

As we can see here, The {PBKDF2} prefix is understood, but FreeIPA uses {PBKDF-SHA1}, {PBKDF-SHA256}, {PBKDF-SHA512}, which ends up throwing an Unsupported password hash algorithm error.

There should not have a lot of effort to provide, because these encryption algorithms are supported by the concerned crate.

I hope to see it soon!

P.-S. : I am currently working on implementing it by myself, and a PR will arrive soon, but because it's my first time with Rust, the code will probably be clumsy

Code of Conduct

DodoLeDev commented 2 weeks ago

PR ready!