This is a cryptographically signed message in MIME format.
--------------ms080402030704010800040907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
bruno_haleblian(a)carrefour.com wrote:
> My goal is to import millions of accounts from a drupal DB to OpenLDAP.=
> preserving existing passwords. I plan to write a SQL to ldif script for=
that.
> Problem :
> These accounts come with a non-standard passwd hash scheme. I've attach=
ed drupal
> link to source code in PHP.
> Although it uses standard SHA512 and base64, the algo is a variant of m=
ultiple
> sha512 + salt iterations. Looks like there's no way to convert to {SSHA=
512} or
> something standard.
> Supposing I can translate it to C, what is the best and cleanest way to=
> integrate this specific scheme?
> Is there an "overlay way" to do this?
> Do I Have to hack into passwd.c in lutils?
> Has this kind of work already been done?
>
> Goal : getting userPassword=3D{DRUP7}$S$DNbBTrkalsPChLsqajHUQS18pBBxzST=
QW0310SzivTy7HDQ.zgyG
> to be supported
1. The password hash looks a bit like a crypt(3) hashing scheme. You shou=
ld=20
consult the crypt(3) man page on this system. There are {crypt} schemes w=
hich=20
uses several rounds.
2. You will find several such password modules in the source distribution=
in=20
directory contrib/slapd-modules/passwd/
Ciao, Michael.
--------------ms080402030704010800040907
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DIEwggY0MIIEHKADAgECAgEeMA0GCSqGSIb3DQEBBQUAMH0xCzAJBgNVBAYTAklMMRYwFAYD
VQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0aWZpY2F0
ZSBTaWduaW5nMSkwJwYDVQQDEyBTdGFydENvbSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAe
Fw0wNzEwMjQyMTAxNTVaFw0xNzEwMjQyMTAxNTVaMIGMMQswCQYDVQQGEwJJTDE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