Use a stronger password hash function for LDAP users #88

Closed
opened 2022-01-06 01:11:44 +00:00 by a · 4 comments
Owner

We're currently using the default hash function for OpenLDAP, salted SHA1 which isn't blatantly insecure but still breakable with modern hardware. I can't convert all of our existing passwords to the new hash function though since I (obviously) don't have the plaintext passwords stored anywhere.

We're currently using the default hash function for OpenLDAP, salted SHA1 which isn't blatantly insecure but still breakable with modern hardware. I can't convert all of our existing passwords to the new hash function though since I (obviously) don't have the plaintext passwords stored anywhere.
a added the
enhancement
help wanted
security
labels 2022-01-06 01:11:44 +00:00
a added this to the (deleted) project 2022-01-06 01:11:44 +00:00
Author
Owner
See this: https://rolandslinuxblog.wordpress.com/2016/09/11/password-encryption-in-openldap/
Author
Owner

I couldn't get that to work, will try again later.

I couldn't get that to work, will try again later.
Author
Owner

Fixed, we now use SHA512. You can change your password to save it using this new hash.

Fixed, we now use SHA512. You can change your password to save it using this new hash.
a closed this issue 2022-01-18 18:00:32 +00:00
Author
Owner

WHY OPENLDAP???? Why must you be so confusing? The olcPasswordHash thing is in the frontend database yet the very similar olcPasswordCryptSaltFormat is in the global config. Why? If it weren't for this man page to save me...

WHY OPENLDAP???? Why must you be so confusing? The `olcPasswordHash` thing is in the frontend database yet the very similar `olcPasswordCryptSaltFormat` is in the global config. Why? If it weren't for this [man page](https://man.archlinux.org/man/core/openldap/slapd-config.5.en) to save me...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/exozyme#88
No description provided.