Re: [pypy-dev] using python-ldap under pypy

2016-01-20 Thread Maciej Fijalkowski
great! thanks for letting us know On Wed, Jan 20, 2016 at 11:05 AM, Elmir Jagudin wrote: > > > On Mon, Dec 14, 2015 at 10:09 AM, Armin Rigo wrote: >> >> Hi again, >> >> On Mon, Dec 14, 2015 at 10:01 AM, Armin Rigo wrote: >> > So it means it's really a bug of python-ldap, which just happens to >

Re: [pypy-dev] using python-ldap under pypy

2016-01-20 Thread Elmir Jagudin
On Mon, Dec 14, 2015 at 10:09 AM, Armin Rigo wrote: > Hi again, > > On Mon, Dec 14, 2015 at 10:01 AM, Armin Rigo wrote: > > So it means it's really a bug of python-ldap, which just happens to > > crash more often on PyPy than on CPython. It should be fixed there. > > Actually it's a known issue

Re: [pypy-dev] using python-ldap under pypy

2015-12-14 Thread Elmir Jagudin
On Mon, Dec 14, 2015 at 10:01 AM, Armin Rigo wrote: > Hi Elmir, > > On Sun, Dec 13, 2015 at 10:19 PM, Elmir Jagudin wrote: > > The error happens in the python-ldap C code that converts ["uid", "cn"] > > array to char **. > > > > In this file: > > > http://python-ldap.cvs.sourceforge.net/viewvc/p

Re: [pypy-dev] using python-ldap under pypy

2015-12-14 Thread Armin Rigo
Hi again, On Mon, Dec 14, 2015 at 10:01 AM, Armin Rigo wrote: > So it means it's really a bug of python-ldap, which just happens to > crash more often on PyPy than on CPython. It should be fixed there. Actually it's a known issue. See the comment line 255: XXX the strings should live long

Re: [pypy-dev] using python-ldap under pypy

2015-12-14 Thread Armin Rigo
Hi Elmir, On Sun, Dec 13, 2015 at 10:19 PM, Elmir Jagudin wrote: > The error happens in the python-ldap C code that converts ["uid", "cn"] > array to char **. > > In this file: > http://python-ldap.cvs.sourceforge.net/viewvc/python-ldap/python-ldap/Modules/LDAPObject.c?revision=1.91&view=markup >

Re: [pypy-dev] using python-ldap under pypy

2015-12-13 Thread Elmir Jagudin
On Fri, Dec 11, 2015 at 3:39 PM, Maciej Fijalkowski wrote: > Hi Elmir. > > I would say that it should work, however, subtle bugs are a bit expected. > > Cool! We should try to fix the bug! > I'm happy to help you debug it, let me know how I can reproduce it. > The bug is pretty simple to repr

Re: [pypy-dev] using python-ldap under pypy

2015-12-11 Thread Maciej Fijalkowski
Hi Elmir. I would say that it should work, however, subtle bugs are a bit expected. I'm happy to help you debug it, let me know how I can reproduce it. On Fri, Dec 11, 2015 at 4:07 PM, Elmir Jagudin wrote: > Hi > > I'm trying to run an application under pypy that authenticates user with > LDAP.

[pypy-dev] using python-ldap under pypy

2015-12-11 Thread Elmir Jagudin
Hi I'm trying to run an application under pypy that authenticates user with LDAP. It is using python-ldap module and it fails to lookup the users. The problem is in python-ldap's c extension code. When it converts the LDAP search query from python format to C, parts of the query are corrupted. I