[Date Prev][Date Next]
Re: OpenLDAP Password Encryption
- To: email@example.com
- Subject: Re: OpenLDAP Password Encryption
- From: Eli Bach <firstname.lastname@example.org>
- Date: Thu, 9 Apr 2009 16:49:18 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:subject :mime-version:date:references:x-mailer; bh=8Uc8A4ln72hfNQBNwGzmopiNu1Q4u8pD6+ofYKobxHM=; b=jw4y/nEt8zFqU+oj87nc8V+bBZRxg73WWHCpoxz3g3Rbf3wdlnH/ktQ2MLBvaHj7a5 6mzSoFCzRKKlkQQLkK0XdWvImWB4gCz/zY4h2rgM2k2AGAZb990kbyX6zy+mCU4oQjhf uTPPi0iQmXcQEZkWgqpjNaAxAFoFclWPO6MB8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:subject:mime-version:date:references :x-mailer; b=QpT8FF7mcZdXa21eoMHQ1h68P/Xh3dlv99jJWl4mz2GZwULhazN43GRuEPZSzVA/V8 RAxxVDCX+6AXlLrPHqR9HMiemvDkj0YH2XH3VynIgfGgxV/+weFNkP+JNV46CgKPXX+j tlh0Fvzhj3kVTtkzCzJL6SasK26puUX9/Sj9Y=
- In-reply-to: <49DE4B63.email@example.com>
- References: <49DE4B63.firstname.lastname@example.org>
On Apr 9, 2009, at 12:24 PM, Myles Merrell wrote:
I'm working on our LDAP server, we want to be sure to encrypt the
password. We also want to be able to decrypt the passwords if a
user loses their passwords, and we need to send it to them.
I've done a lot of research on encrypting the passwords, but none of
the methods I have seen allow you to easily decrypt the password
using a private key or something like that.
Is this possible, if so how?
There are a variety of password authentication scheme's that openldap
can use, some of which may keep your password in plaintext form, and
some that don't.
It also depends on what kind of effort you want your end-users to have
to use/update their password.
For example, I have an openldap setup which supports smd5 hashed
passwords, as well as sasl. sasl happens to store the plaintext
password in a separate database, with openldap holding just the smd5
hashed password. But, for the user to change their password, I had to
write a special app to update both locations at the same time. It was
non-trivial to get this system up and working (getting sasl & openldap
working together properly was a pain on my system).
If I had just supported smd5 hashed passwords, then users could use
the standard ldap tool to change their password.
However, 99 out of 100 security experts recommend just providing a
system to update passwords, rather than having a way to retrieve an