[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7869) [PATCH] contrib passwd/apr1 do_phk_hash arguments



Thanks for following up.

On Thu, Jul 17, 2014 at 2:00 PM, Howard Chu <hyc@symas.com> wrote:
> my($password)       = 'seekrit';
> my($salt)           = 'pepperoni';
> my($apache_crypted) = apache_md5_crypt($password, $salt);

$apr1$pepperon$VBD3GaYfoFXuIcZrTw/Y//

> can be converted to OpenLDAP {BSDMD5} and {APR1} format, respectively

{APR1}FK7q3pAf80k0Wh9BYZJ0FHBlcHBlcm9u

correct?

> and matches the output generated by the current module using the same salt and plaintext.

dn: uid=test,dc=example,dc=com
objectClass: account
objectClass: simpleSecurityObject
userPassword: {APR1}FK7q3pAf80k0Wh9BYZJ0FHBlcHBlcm9u