Re: (ITS#8115) Adding passwd hash schemes
by michael@stroeder.com
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
Fw0wNzEwMjQyMTAxNTVaFw0xNzEw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QF3UaZ
fSHrcTcyi19KHTIbfBWftKZAL9tHp0UBppkxfCVE8FMfpaa9zgRS9UStw+Ih0p8nhL344ODt
/IpXbjY5rBPpDRKRJ4ND3XQysdjrGiH21IXKKeQmMybzjL9CNGbVqAYL7T2A/cLKhnYLiw0f
AAAAAAAA
--------------ms080402030704010800040907--
5 years, 8 months
(ITS#8115) Adding passwd hash schemes
by bruno_haleblian@carrefour.com
Full_Name: Bruno HALEBLIAN
Version: 2.4.40 >
OS: RH/CentOS 6.x
URL: https://api.drupal.org/api/drupal/includes!password.inc/function/_passwor...
Submission from: (NULL) (195.154.81.10)
Hi,
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 attached drupal
link to source code in PHP.
Although it uses standard SHA512 and base64, the algo is a variant of multiple
sha512 + salt iterations. Looks like there's no way to convert to {SSHA512} 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={DRUP7}$S$DNbBTrkalsPChLsqajHUQS18pBBxzSTQW0310SzivTy7HDQ.zgyG
to be supported
Regards,
BHa.
5 years, 8 months
Re: (ITS#8105) [PATCH] slaptest doesn't convert perlModuleConfig lines
by jsynacek@redhat.com
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Howard Chu <hyc(a)symas.com> writes:
> Jan Synacek wrote:
>> Howard Chu <hyc(a)symas.com> writes:
>>
>>> Jan Synacek wrote:
>>>> Howard Chu <hyc(a)symas.com> writes:
>>>>
>>>>> jsynacek(a)redhat.com wrote:
>>>>>> Full_Name: Jan Synacek
>>>>>> Version: master
>>>>>> OS: GNU/Linux
>>>>>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150415-ba=
ck-perl-correctly-convert-perlModuleConfig.patch
>>>>>> Submission from: (NULL) (213.175.37.10)
>>>>>>
>>>>>>
>>>>>> When using the perl backend, slaptest doesn't convert perlModuleConf=
ig lines
>>>>>> from slapd.conf to slapd.d.
>>>>>>
>>>>>> A simple reproducer can be found at
>>>>>> https://jsynacek.fedorapeople.org/openldap/back-perl.sh
>>>>>>
>>>>>>
>>>>> Thanks, added to git master
>>>>
>>>> I misunderstood the semantics of perlModuleConfig when given multiple
>>>> arguments, so the patch isn't quite correct. I'm sorry for the
>>>> confusion. The fix can be found at:
>>>>
>>>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150424-More=
-for-ITS-8105.patch
>>>>
>>>> Please note that I'm not aware of any internal functions that I can use
>>>> to flatten a list of strings. If there are some, or if there is a bett=
er
>>>> way to fix the issue, please advice, I'll simplify the patch.
>>>>
>>> Hi Jan, there's no need to muck with the list of strings, just use
>>> c->line instead of c->argv.
>>
>> Thank you for your advice! I've simplified the patch (url stays the same=
).
>
> Looks OK. One minor nit - we discourage using strlen() (or most of the=20
> libc str* functions, really). We particularly discourage runtime=20
> calculations on compile-time constants (including string constants) -=20
> use the STRLENOF() macro instead.
Done.
=2D-=20
Jan Synacek
Software Engineer, Red Hat
--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJVPgvMAAoJEL3BmMJQOtjBC/cQAK3bicCb/k7Y47Jwt8hgIp7A
2+jHmMtIwVdA7sK7f26dPlwATUxtYXdXwewTJF8+t+wUg99cNEmgF0c/7clpEVJn
7lwOTdM5aJj5WDarXLYBpOnVoXNCP9aHTigAAe6wuRCHxeIclbqf5yd8wxEELDkl
piM6KkdWKqKlBY/hybD6+JI+hbXSFsHJfIdSudq+uVZwyDLjdjy3SPjoNiSZxSUi
S+h7CAt+d384KXX8aEGq9hUe5K2vvr3Yr83Gelm6w6xN4/aDFQZ75SHumsMPXrAe
j5mGNDb1Y8mMcrzJ0Qc/6JT8JCbhHJEaHKLUxLeYOH1NFylqNFUA2kgYI5jsjVUE
eMSXbb+pyKeWMbqUERNH6/tNS2t9rk/awJCj4o+xsRoK8DluUnP7tkSpTaDe4UqO
itgxNhKCV9NPm5Ar3MbBJOVK+dBIgOM9VM+t5ju+MdpiDTuytnUgIvvaixWfP7Bg
t8Q4t9U8u3gHoWyBdBnLVmwx7qq/BtPxqAt5uDv8mv9MyM9eeoDb4eaRhOe7sl2y
5s3bpBvOADks4dX5RpQ/SGUU5s/Fh/b2rAUrXqVxEkw5PipbTOBhx2LwKNVPnGhm
SoLjQzm7fDEODFS7/jAWbzYsxQ6m8engNUpSi1rMt1PJbLzVrW2vaU6+1UG5eiaS
IhBsZnx4E+WCfGoaUzxt
=23Ho
-----END PGP SIGNATURE-----
--=-=-=--
5 years, 8 months
Re: (ITS#8105) [PATCH] slaptest doesn't convert perlModuleConfig lines
by hyc@symas.com
Jan Synacek wrote:
> Howard Chu <hyc(a)symas.com> writes:
>
>> Jan Synacek wrote:
>>> Howard Chu <hyc(a)symas.com> writes:
>>>
>>>> jsynacek(a)redhat.com wrote:
>>>>> Full_Name: Jan Synacek
>>>>> Version: master
>>>>> OS: GNU/Linux
>>>>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150415-back-perl-co...
>>>>> Submission from: (NULL) (213.175.37.10)
>>>>>
>>>>>
>>>>> When using the perl backend, slaptest doesn't convert perlModuleConfig lines
>>>>> from slapd.conf to slapd.d.
>>>>>
>>>>> A simple reproducer can be found at
>>>>> https://jsynacek.fedorapeople.org/openldap/back-perl.sh
>>>>>
>>>>>
>>>> Thanks, added to git master
>>>
>>> I misunderstood the semantics of perlModuleConfig when given multiple
>>> arguments, so the patch isn't quite correct. I'm sorry for the
>>> confusion. The fix can be found at:
>>>
>>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150424-More-for-ITS...
>>>
>>> Please note that I'm not aware of any internal functions that I can use
>>> to flatten a list of strings. If there are some, or if there is a better
>>> way to fix the issue, please advice, I'll simplify the patch.
>>>
>> Hi Jan, there's no need to muck with the list of strings, just use
>> c->line instead of c->argv.
>
> Thank you for your advice! I've simplified the patch (url stays the same).
Looks OK. One minor nit - we discourage using strlen() (or most of the
libc str* functions, really). We particularly discourage runtime
calculations on compile-time constants (including string constants) -
use the STRLENOF() macro instead.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
5 years, 8 months
Re: (ITS#8105) [PATCH] slaptest doesn't convert perlModuleConfig lines
by jsynacek@redhat.com
Howard Chu <hyc(a)symas.com> writes:
> Jan Synacek wrote:
>> Howard Chu <hyc(a)symas.com> writes:
>>
>>> jsynacek(a)redhat.com wrote:
>>>> Full_Name: Jan Synacek
>>>> Version: master
>>>> OS: GNU/Linux
>>>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150415-back-perl-co...
>>>> Submission from: (NULL) (213.175.37.10)
>>>>
>>>>
>>>> When using the perl backend, slaptest doesn't convert perlModuleConfig lines
>>>> from slapd.conf to slapd.d.
>>>>
>>>> A simple reproducer can be found at
>>>> https://jsynacek.fedorapeople.org/openldap/back-perl.sh
>>>>
>>>>
>>> Thanks, added to git master
>>
>> I misunderstood the semantics of perlModuleConfig when given multiple
>> arguments, so the patch isn't quite correct. I'm sorry for the
>> confusion. The fix can be found at:
>>
>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150424-More-for-ITS...
>>
>> Please note that I'm not aware of any internal functions that I can use
>> to flatten a list of strings. If there are some, or if there is a better
>> way to fix the issue, please advice, I'll simplify the patch.
>>
> Hi Jan, there's no need to muck with the list of strings, just use
> c->line instead of c->argv.
Thank you for your advice! I've simplified the patch (url stays the same).
Cheers,
--
Jan Synacek
Software Engineer, Red Hat
5 years, 8 months
(ITS#8114) [WIP] WiredTiger Backend for OpenLDAP
by hamano@osstech.co.jp
Full_Name: HAMANO Tsukasa
Version: master
OS: Linux
URL: https://www.osstech.co.jp/download/hamano/openldap/0001-OpenLDAP-WiredTig...
Submission from: (NULL) (183.77.250.155)
The attached patch file is derived from OpenLDAP Software. All of the
modifications to OpenLDAP Software represented in the following
patch(es) were developed by HAMANO Tsukasa <hamano(a)osstech.co.jp>. I
have not assigned rights and/or interest in this work to any party.
Copyright 2015 HAMANO Tsukasa <hamano(a)osstech.co.jp>
Redistribution and use in source and binary forms, with or without
modification, are permitted only as authorized by the OpenLDAP Public
License.
5 years, 8 months
Re: (ITS#8089) LMDB hangs on mdb_txn_renew0 if MDB_NOSYNC flag is used
by hyc@symas.com
Pavel Kraynyukhov wrote:
> Hello Howard,
> Please accept my apologies, the issue was not related to LMDB. There
> have been a data race in my code that was only triggered by fast writes.
> Sorry for late answer, - your e-mail landed into the spam-folder, and I
> just found it.
>
> With best regards,
> Pavel.
OK, thanks for the reply, closing this ITS.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
5 years, 8 months
Re: (ITS#8089) LMDB hangs on mdb_txn_renew0 if MDB_NOSYNC flag is used
by pk@dbic.pro
--90e6ba3fd5fbb4dffe05148bbe0e
Content-Type: text/plain; charset=UTF-8
Hello Howard,
Please accept my apologies, the issue was not related to LMDB. There have
been a data race in my code that was only triggered by fast writes.
Sorry for late answer, - your e-mail landed into the spam-folder, and I
just found it.
With best regards,
Pavel.
2015-04-16 8:04 GMT+06:00 Howard Chu <hyc(a)symas.com>:
> pk(a)dbic.pro wrote:
>
>> Full_Name: Pavel Kraynyukhov
>> Version: only LMDB from git and lmdb-0.9.14
>> OS: Gentoo Linux
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (37.99.47.171)
>>
>>
>> Hello there, I have ran into an issue with LMDB, which I can reproduce at
>> will,
>> but it seems a specific one. The git commit is
>> 3368d1f5e243225cba4d730fba19ff600798ebe3
>> And this commit and my issue seems to be related.
>>
>> 1. I use MDB_NOTLS flag on environment open.
>> 2. if I use MDB_NOSYNC flag for LMDB environment, the writer thread is
>> stuck
>> after several transactions (writer thread backtrace):
>>
>
> P.S. tested against system provided lmdb version 0.9.14 and result is the
>> same.
>> So this maybe not related to latest commit in git.
>>
>
> If you're having this problem in 0.9.14 then it is certainly not related
> to 3368d1f5e243225cba4d730fba19ff600798ebe3.
>
> You confirm that the issue does not occur in 0.9.13? Can you upload a test
> case demonstrating the problem?
>
> --
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
>
--90e6ba3fd5fbb4dffe05148bbe0e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div><div><div><div>Hello Howard,<br></div>Please accept m=
y apologies, the issue was not related to LMDB. There have been a data race=
in my code that was only triggered by fast writes.<br></div>Sorry for late=
answer, - your e-mail landed into the spam-folder, and I just found it.<br=
><br></div>With best regards,<br></div>Pavel.<br><div><div><div><div><div c=
lass=3D"gmail_extra"><br><div class=3D"gmail_quote">2015-04-16 8:04 GMT+06:=
00 Howard Chu <span dir=3D"ltr"><<a href=3D"mailto:hyc@symas.com" target=
=3D"_blank">hyc(a)symas.com</a>></span>:<br><blockquote class=3D"gmail_quo=
te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
><a href=3D"mailto:pk@dbic.pro" target=3D"_blank">pk(a)dbic.pro</a> wrote:<br=
>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Full_Name: Pavel Kraynyukhov<br>
Version: only LMDB from git and lmdb-0.9.14<br>
OS: Gentoo Linux<br>
URL: <a href=3D"ftp://ftp.openldap.org/incoming/" target=3D"_blank">ftp://f=
tp.openldap.org/incoming/</a><br>
Submission from: (NULL) (37.99.47.171)<br>
<br>
<br>
Hello there, I have ran into an issue with LMDB, which I can reproduce at w=
ill,<br>
but it seems a specific one. The git commit is<br>
3368d1f5e243225cba4d730fba19ff600798ebe3<br>
And this commit and my issue seems to be related.<br>
<br>
1. I use MDB_NOTLS flag on environment open.<br>
2. if=C2=A0 I use MDB_NOSYNC flag for LMDB environment, the writer thread i=
s stuck<br>
after several transactions (writer thread backtrace):<br>
</blockquote>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
P.S. tested against system provided lmdb version 0.9.14 and result is the s=
ame.<br>
So this maybe not related to latest commit in git.<br>
</blockquote>
<br>
If you're having this problem in 0.9.14 then it is certainly not relate=
d to 3368d1f5e243225cba4d730fba19ff600798ebe3.<br>
<br>
You confirm that the issue does not occur in 0.9.13? Can you upload a test =
case demonstrating the problem?<span class=3D"HOEnZb"><font color=3D"#88888=
8"><br>
<br>
-- <br>
=C2=A0 -- Howard Chu<br>
=C2=A0 CTO, Symas Corp.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"=
http://www.symas.com" target=3D"_blank">http://www.symas.com</a><br>
=C2=A0 Director, Highland Sun=C2=A0 =C2=A0 =C2=A0<a href=3D"http://highland=
sun.com/hyc/" target=3D"_blank">http://highlandsun.com/hyc/</a><br>
=C2=A0 Chief Architect, OpenLDAP=C2=A0 <a href=3D"http://www.openldap.org/p=
roject/" target=3D"_blank">http://www.openldap.org/project/</a><br>
</font></span></blockquote></div><br><br></div></div></div></div></div></di=
v>
--90e6ba3fd5fbb4dffe05148bbe0e--
5 years, 8 months
Re: (ITS#8105) [PATCH] slaptest doesn't convert perlModuleConfig lines
by hyc@symas.com
Jan Synacek wrote:
> Howard Chu <hyc(a)symas.com> writes:
>
>> jsynacek(a)redhat.com wrote:
>>> Full_Name: Jan Synacek
>>> Version: master
>>> OS: GNU/Linux
>>> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150415-back-perl-co...
>>> Submission from: (NULL) (213.175.37.10)
>>>
>>>
>>> When using the perl backend, slaptest doesn't convert perlModuleConfig lines
>>> from slapd.conf to slapd.d.
>>>
>>> A simple reproducer can be found at
>>> https://jsynacek.fedorapeople.org/openldap/back-perl.sh
>>>
>>>
>> Thanks, added to git master
>
> I misunderstood the semantics of perlModuleConfig when given multiple
> arguments, so the patch isn't quite correct. I'm sorry for the
> confusion. The fix can be found at:
>
> URL: https://jsynacek.fedorapeople.org/openldap/jsynacek-20150424-More-for-ITS...
>
> Please note that I'm not aware of any internal functions that I can use
> to flatten a list of strings. If there are some, or if there is a better
> way to fix the issue, please advice, I'll simplify the patch.
>
Hi Jan, there's no need to muck with the list of strings, just use
c->line instead of c->argv.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
5 years, 8 months