Re: (ITS#8338) LMDB build fail by using MinGW
by hyc@symas.com
ray2501(a)gmail.com wrote:
> Full_Name: Danilo Chang
> Version:
> OS: Windows 7
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (61.66.209.161)
>
>
> ITS#8324 "incremental DB file growth for Windows add APIs" add APIs defined in
> <wdm.h> and <ntifs.h> but not define NTSTATUS type in LMDB mdb.c, result in
> build fail by using MinGW or MinGW-w64.
>
> Please add NTSTATUS type definition in LMDB mdb.c.
>
> Below is a quick fix:
> typedef LONG NTSTATUS;
>
>
Seems you have a very old version of MinGW. Builds fine for me using MSYS2 as
well as MSYS.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
7 years, 11 months
(ITS#8338) LMDB build fail by using MinGW
by ray2501@gmail.com
Full_Name: Danilo Chang
Version:
OS: Windows 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (61.66.209.161)
ITS#8324 "incremental DB file growth for Windows add APIs" add APIs defined in
<wdm.h> and <ntifs.h> but not define NTSTATUS type in LMDB mdb.c, result in
build fail by using MinGW or MinGW-w64.
Please add NTSTATUS type definition in LMDB mdb.c.
Below is a quick fix:
typedef LONG NTSTATUS;
7 years, 11 months
Re: (ITS#7100) slapo-dds: entryTTL not decreasing
by michael@stroeder.com
This is a cryptographically signed message in MIME format.
--------------ms070404020000010803010601
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
ondra(a)mistotebe.net wrote:
> when watching the entries, they seem to be updating in real time for me=
> as expected, do you have a cache of some sort between you and the serve=
r?
Ah, sorry!
web2ldap has a short-time cache and I have to investiate why the URL argu=
ment
read_nocache=3D1 currently doesn't have any effect. :-/
Ok, your fix seems perfectly right.
Ciao, Michael.
--------------ms070404020000010803010601
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
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20gQ2xhc3MgMSBQcmltYXJ5IEludGVy
bWVkaWF0ZSBDbGllbnQgQ0ECAw9WDjANBgkqhkiG9w0BAQEFAASCAQCVWQT/K8Pu5yMaLZVS
tAseReEGBO1o1hu/1MHsup+WHyzyv20GdHickBH8E8dNo9pWLN37Zx/8akxd0ose2tFMdnJE
/VH3HdTItKFQdcjR7/iUsELefikY1GhfDF4stCCIrmzMDai8bgrnsZwiGbs/EN5rPakAvxKI
b8OKvbjLD2cXGHitZ/t5J4bOk7we5cHyaynbIj3AwOzTroGCrF9PUlfvqR9MPdjRiCreUvju
w9a8h3SQIhMpwpDMaYbO4v/Udqf2ytBrN8Gi4SX+u67BzIkA7sPZ+3c688X+90NCay525lMp
h1OLWeW6TJhbaaqBoTJ6zJNKcIBExIA91RIMAAAAAAAA
--------------ms070404020000010803010601--
7 years, 11 months
Re: (ITS#8291) ./run -b hdb test007 fails
by michael@stroeder.com
michael(a)stroeder.com wrote:
> But ./run -b mdb test062 fails with:
> ldapsearch should have failed with Critical extension is unavailable (12)!
> ./scripts/test062-config-delete: line 164: kill: (18467) - No such process
>
> Likely the latter is unrelated.
test062 fails *sometimes* also with upstream git master (see ITS#8151).
So your solution for test007 seems to be ok.
Ciao, Michael.
7 years, 11 months
Re: (ITS#8291) ./run -b hdb test007 fails
by michael@stroeder.com
ondra(a)mistotebe.net wrote:
> looks like an issue similar to the one fixed in
> ITS#7256, this time it is only BerkeleyDB 4.8 that seems to complain
> (have not tested with 4.7).
>
> Can you test with the latest commit at branch ITS8291 in my github repo
> (https://github.com/mistotebe/openldap)?
I've tested your branch ITS8291 with this commit:
commit 47b7a1e29586793e87cacfa10fc50e2fc9d44b5f
Author: Ondřej Kuzník <ondra(a)mistotebe.net>
Date: Wed Dec 16 13:47:17 2015 +0100
ITS#8291 Reopen cursor after delete
./run -b hdb test007 works perfectly now.
But ./run -b mdb test062 fails with:
ldapsearch should have failed with Critical extension is unavailable (12)!
./scripts/test062-config-delete: line 164: kill: (18467) - No such process
Likely the latter is unrelated.
Ciao, Michael.
7 years, 11 months
Re: (ITS#7100) slapo-dds: entryTTL not decreasing
by ondra@mistotebe.net
On Sat, Dec 12, 2015 at 06:50:12PM +0000, michael(a)stroeder.com wrote:
> ondra(a)mistotebe.net wrote:
>> On Tue, Jul 22, 2014 at 07:38:26PM +0000, michael(a)stroeder.com wrote:
>>> Would be nice if this gets ever fixed to match the RFC.
>>
>> Hi, can you test the changes in branch ITS7100 at
>> https://github.com/mistotebe/openldap?
>
> Sorry for following up so late.
>
> I've tested your branch.
>
> 2. entryTTL seems now to be decreased
>
> It seems that when re-reading an entry the entryTTL is not always computed on
> the fly. Rather the value is decreased every ~6 seconds (not matching dds-interval).
Hi,
when watching the entries, they seem to be updating in real time for me
as expected, do you have a cache of some sort between you and the server?
Cheers,
Ondrej
7 years, 11 months
Re: (ITS#8291) ./run -b hdb test007 fails
by ondra@mistotebe.net
On Sat, Dec 12, 2015 at 07:11:43PM +0000, michael(a)stroeder.com wrote:
> ondra(a)mistotebe.net wrote:
> > On Tue, Oct 27, 2015 at 09:50:10AM +0000, michael(a)stroeder.com wrote:
> >> Strange: testrun/test.out has zero bytes. :-/
> >> But the DB files are created.
> >>
> >> Other tests with -b hdb seem to work ok.
> >> Maybe it's just the test script?
> >
> > I've let slapmodify honour logging settings in branch ITS8291 at
> > https://github.com/mistotebe/openldap, could you paste the output of
> > test.out with that enabled and possibly loglevel set to -1?
>
> See test.out here:
>
> http://www.stroeder.com/temp/openldap-its8291-test_out.gz
Hi,
thanks for the logs, looks like an issue similar to the one fixed in
ITS#7256, this time it is only BerkeleyDB 4.8 that seems to complain
(have not tested with 4.7).
Can you test with the latest commit at branch ITS8291 in my github repo
(https://github.com/mistotebe/openldap)?
Thanks,
Ondrej
7 years, 11 months
RE: (ITS#8337) olcDbChecksum not allowed in olcHdbConfig/olcBdbConfig
by kenneth.penza@gov.mt
>From: Howard Chu [mailto:hyc@symas.com]=20
>Sent: Saturday, 12 December 2015 17:15
>To: Penza Kenneth at MITA; openldap-its(a)OpenLDAP.org
>Subject: Re: (ITS#8337) olcDbChecksum not allowed in olcHdbConfig/olcBdbCo=
nfig
>
>kenneth.penza(a)gov.mt wrote:
>> Full_Name: Kenneth Penza
>> Version: 2.4.43
>> OS: CentOS 7.1
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (46.11.36.84)
>>
>>
>> olcDbChecksum is not accepted for BDB and HDB backends (whilst its=20
>> documented in the manual pages). Below please find files and steps to re=
produce.
>
>Thanks for the report, fixed now in git master.
>>
>> File attached:
>>
>> configbdb.ldif - ldif file to create config database with BDB backend=20
>> and checksum enabled. Uploaded in=20
>> ftp://ftp.openldap.org/incoming/kenneth-penza-151212-configbdb.ldif
>>
>> confighdb.ldif - ldif file to create config database with HDB backend=20
>> and checksum enabled. Uploaded in=20
>> ftp://ftp.openldap.org/incoming/kenneth-penza-151212-confighdb.ldif
>>
>> Test case:
>>
>> mkdir -p /tmp/dummyconfig/slapd.d.{b,h}db cd /tmp/dummyconfig
>>
>> slapadd -v -F slapd.d.bdb -n 0 -l configbdb.ldif slapadd -v -F=20
>> slapd.d.hdb -n 0 -l confighdb.ldif
>>
>>
>> For BDB it reports:
>>
>> 566c3f04 Entry (olcDatabase=3D{2}bdb,cn=3Dconfig), attribute=20
>> 'olcDbChecksum' not allowed
>> slapadd: dn=3D"olcDatabase=3D{2}bdb,cn=3Dconfig" (line=3D1070): (65) att=
ribute=20
>> 'olcDbChecksum' not allowed
>>
>> For HDB it reports:
>>
>> 566c41e2 Entry (olcDatabase=3D{2}hdb,cn=3Dconfig), attribute=20
>> 'olcDbChecksum' not allowed
>> slapadd: dn=3D"olcDatabase=3D{2}hdb,cn=3Dconfig" (line=3D1070): (65) att=
ribute=20
>> 'olcDbChecksum' not allowed
>>
>> Kenneth
>>
>>
>
>
>--=20
> -- Howard Chu
> CTO, Symas Corp. http://www.symas.com
> Director, Highland Sun http://highlandsun.com/hyc/
> Chief Architect, OpenLDAP http://www.openldap.org/project/
I have pulled the sources that had the fix from the git repository and reco=
mpiled openldap. Following the patch, config creation worked fine.
To verify that it is working as expected, I tested with the olcDbChecksum s=
et to true/false and verified the checksum flag of the database created as =
per below output.
For both BDB/HDB backends, olcDbChecksum set to true, removed all files und=
er /var/lib/ldap/* and started server to re-create database.
[root@host01 ldap]# db_dump /var/lib/ldap/dn2id.bdb=20
VERSION=3D3
format=3Dbytevalue
type=3Dbtree
chksum=3D1
duplicates=3D1
dupsort=3D1
db_pagesize=3D4096
HEADER=3DEND
DATA=3DEND
[root@host01 ldap]#=20
For both BDB/HDB backends, olcDbChecksum set to false, removed all files un=
der /var/lib/ldap/* and started server to re-create database.
[root@host01 ldap]# db_dump /var/lib/ldap/dn2id.bdb=20
VERSION=3D3
format=3Dbytevalue
type=3Dbtree
duplicates=3D1
dupsort=3D1
db_pagesize=3D4096
HEADER=3DEND
DATA=3DEND
[root@host01 ldap]#=20
>From the output above, it is working as expected. Thanks for your prompt su=
pport and patch.
Regards
Kenneth
7 years, 11 months
Re: (ITS#7992) lmdb: Windows: assume file paths are UTF-8, encode to UTF-16 for WinAPI and enable compiling when UNICODE is defined
by h.b.furuseth@usit.uio.no
On 20/11/15 02:16, hyc(a)symas.com wrote:
>> Also use CreateFileW to open files so that one can use exotic characters in
>> paths. The library interface is not modified, but the code makes an assumption
>> that paths passed to lmdb functions are encoded as UTF-8. The UTF-8 encoded
>> paths are encoded to UTF-16 which is then passed to CreateFileW.
>
> This patch is now in git mdb.master.
Needs cleanup:
utf8_to_utf16() ignores errors in malloc/MultiByteToWideChar().
utf8_to_utf16()'s callers ignore error returns.
utf8_to_utf16() can return EILSEQ, an errno code not listed in
mdb_strerror(). It should return a Windows error code or a new
MDB_<SOMETHING> code.
(LMDB returns LDMB codes or system error codes. The latter are
errno codes on Unix and Windows codes on Windows - except
mdb_strerror's hardcoded errno codes which we plan to get rid of.)
7 years, 11 months