Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
Hi I'm trying to build LMDB with Java/JNI bindings with Visual C++ Project Builder 9.00.30729 (vcbuild). Unfortunately, vcbuild don't ship with inttypes.h, stdint.h, or a sane ssize_t. So I searched around and found a few candidates [1] of inttypes.h and stdint.h that seems to be working for py-l

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
The vcbuild file is found here [2]. Note that the project builds fine but tests fail and succeed sporadically. [2] https://github.com/deephacks/lmdbjni/blob/master/lmdbjni/src/main/native-package/vs2010.vcxproj On Thu, Nov 19, 2015 at 9:27 PM, Kristoffer Sjögren wrote: > Hi > > I'm trying to bu

Re: Building for windows. Again.

2015-11-19 Thread Howard Chu
Kristoffer Sjögren wrote: Hi I'm trying to build LMDB with Java/JNI bindings with Visual C++ Project Builder 9.00.30729 (vcbuild). Unfortunately, vcbuild don't ship with inttypes.h, stdint.h, or a sane ssize_t. So I searched around and found a few candidates [1] of inttypes.h and stdint.h that

ERR_employeeadd {'info': 'modifications require authentication', 'desc': 'Strong(er) authentication required'}

2015-11-19 Thread Andrei Valoshyn
Hello! I have slapd 2.4.39 and python 2.6 I tried to create an user via python when I tried do that with root permission - it's OK. But when I did this with config in slapd.conf "access to * by group.exact="cn=LDAP_admins,ou=Roles,ou=Groups,dc=exadel,dc=com" write" I have an error " ERR_emplo

Re: Atribute Tags [was: multi-value attribute virtual view of single attribute]

2015-11-19 Thread Marc Patermann
Hi, Am 27.10.2015 um 11:00 Uhr schrieb Howard Chu: Marc Patermann wrote: Am 24.10.2015 um 07:24 Uhr schrieb Howard Chu: Quanah Gibson-Mount wrote: --On Friday, October 23, 2015 1:15 PM -0700 Jason Whitener wrote: If I had a multi-valued attribute like cn: var0:value cn: var2:value cn: var

Re: Problem making refint_nothing working

2015-11-19 Thread M. P.
Le 2015-11-17 17:08, Howard Chu a écrit : katgb wrote: Hi all, I tried for some days to make refint overlay work with refint_nothing filled. The slapo-refint man page says : refint_nothing Specify an arbitrary value to be used as a placeholder when the last value wo

questions about memberof-refint option

2015-11-19 Thread M. P.
Hi, I'm playing with memberof overlay. For my tests, I use the default database (numbered 1) from slapd installation with suffix dc=nodomain. The tests are running on debian jessie 8.2 and slapd version 2.4.40+dfsg-1 Activating the module in cn=module entry and activating the overlay for th

RE: OpenLDAP installation. Am I missing something?

2015-11-19 Thread Sherman Lilly
Thanks. The LTB project was much easier. Sherman Lilly (865) 215-3536 Senior Systems Administrator Knox County From: Quanah Gibson-Mount [qua...@zimbra.com] Sent: Monday, November 16, 2015 7:01 PM To: Sherman Lilly; OpenLDAP, Technical ‎[openldap-technical

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
That's the thing, the build doesn't complain about anything missing. But the binary seems broken because tests fail randomly. A user tried the generated binary on his machine and it worked but also said... "Hm, almost, the database file is no longer put to the requested directory, and its name is

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
The actual build command: $ cmd.exe /X /C "vcbuild /platform:x64 vs2008.vcproj release" On Thu, Nov 19, 2015 at 10:11 PM, Kristoffer Sjögren wrote: > That's the thing, the build doesn't complain about anything missing. > But the binary seems broken because tests fail randomly. > > A user tried t

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
The py-lmdb project have a comment [1] about reusing Python.h headers which seems to work for them. # Microsoft Visual Studio 9 ships with neither inttypes.h, stdint.h, or a sane # definition for ssize_t, so here we add lib/win32 to the search path, which # contains emulation header files provided

Re: Building for windows. Again.

2015-11-19 Thread Howard Chu
Kristoffer Sjögren wrote: The py-lmdb project have a comment [1] about reusing Python.h headers which seems to work for them. # Microsoft Visual Studio 9 ships with neither inttypes.h, stdint.h, or a sane # definition for ssize_t, so here we add lib/win32 to the search path, which # contains emu

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
I can see the problem now from a local test. Hmm i'm a bit confused. The JNI code uses GetStringUTFChars calls [1] for all char * arguments going from Java to C, which is an array of bytes representing the string in modified UTF-8 encoding. Is this OK? The other option is to use GetStringChars whi

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
Oh, but the build file [2] have a CharacterSet element set to Unicode. Let me see if I can change this. [2] https://github.com/deephacks/lmdbjni/blob/master/lmdbjni/src/main/native-package/vs2010.vcxproj On Thu, Nov 19, 2015 at 11:45 PM, Kristoffer Sjögren wrote: > I can see the problem now fro

Re: Building for windows. Again.

2015-11-19 Thread Kristoffer Sjögren
Changing CharacterSet in the build file doesn't affect the garbled path. I tried to use explicit GetStringChars from the JNI code but with same result. Any pointers? I'm running short of ideas.. On Thu, Nov 19, 2015 at 11:55 PM, Kristoffer Sjögren wrote: > Oh, but the build file [2] have a Char

Re: Building for windows. Again.

2015-11-19 Thread Howard Chu
Kristoffer Sjögren wrote: Changing CharacterSet in the build file doesn't affect the garbled path. I tried to use explicit GetStringChars from the JNI code but with same result. Any pointers? I'm running short of ideas.. Looks like we need to use UTF-8, as in ITS#7992. I've just merged that p

Re: questions about memberof-refint option

2015-11-19 Thread Michael Ströder
M. P. wrote: > Reading the man page, I saw memberof-refint option. From what I understand, > when set to true, you can alter the user's "is member of" attribute and that > would be reflected in the group's "member" attribute. Right ? I read the man page differently: "memberof-refint true" preserv

Re: Problem making refint_nothing working

2015-11-19 Thread Michael Ströder
M. P. wrote: > I'm not sure I understand "user modification requests" well. By user, do you > mean the person who manipulate the directory or an object of "type" user ? This term is used for normal LDAP modify requests coming from a LDAP client external to slapd. > If I have memberof overlay acti