You can subscribe to this list here.
| 2000 |
Jan
|
Feb
(34) |
Mar
(9) |
Apr
|
May
(2) |
Jun
(14) |
Jul
(67) |
Aug
(34) |
Sep
(5) |
Oct
(20) |
Nov
(22) |
Dec
(31) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(15) |
Feb
(16) |
Mar
(20) |
Apr
(13) |
May
(72) |
Jun
(42) |
Jul
(41) |
Aug
(11) |
Sep
(19) |
Oct
(67) |
Nov
(59) |
Dec
(57) |
| 2002 |
Jan
(74) |
Feb
(69) |
Mar
(34) |
Apr
(55) |
May
(47) |
Jun
(74) |
Jul
(116) |
Aug
(68) |
Sep
(25) |
Oct
(42) |
Nov
(28) |
Dec
(52) |
| 2003 |
Jan
(19) |
Feb
(18) |
Mar
(35) |
Apr
(49) |
May
(73) |
Jun
(39) |
Jul
(26) |
Aug
(59) |
Sep
(33) |
Oct
(56) |
Nov
(69) |
Dec
(137) |
| 2004 |
Jan
(276) |
Feb
(15) |
Mar
(18) |
Apr
(27) |
May
(25) |
Jun
(7) |
Jul
(13) |
Aug
(2) |
Sep
(2) |
Oct
(10) |
Nov
(27) |
Dec
(28) |
| 2005 |
Jan
(22) |
Feb
(25) |
Mar
(41) |
Apr
(17) |
May
(36) |
Jun
(13) |
Jul
(22) |
Aug
(12) |
Sep
(23) |
Oct
(6) |
Nov
(4) |
Dec
|
| 2006 |
Jan
(11) |
Feb
(3) |
Mar
(5) |
Apr
(22) |
May
(1) |
Jun
(10) |
Jul
(19) |
Aug
(7) |
Sep
(25) |
Oct
(23) |
Nov
(5) |
Dec
(27) |
| 2007 |
Jan
(25) |
Feb
(17) |
Mar
(44) |
Apr
(8) |
May
(33) |
Jun
(31) |
Jul
(42) |
Aug
(16) |
Sep
(12) |
Oct
(16) |
Nov
(23) |
Dec
(73) |
| 2008 |
Jan
(26) |
Feb
(6) |
Mar
(46) |
Apr
(17) |
May
(1) |
Jun
(44) |
Jul
(9) |
Aug
(34) |
Sep
(20) |
Oct
(2) |
Nov
(4) |
Dec
(16) |
| 2009 |
Jan
(14) |
Feb
(3) |
Mar
(45) |
Apr
(52) |
May
(34) |
Jun
(32) |
Jul
(24) |
Aug
(52) |
Sep
(22) |
Oct
(23) |
Nov
(19) |
Dec
(10) |
| 2010 |
Jan
(10) |
Feb
(13) |
Mar
(22) |
Apr
(9) |
May
(1) |
Jun
(1) |
Jul
(8) |
Aug
(9) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
(3) |
| 2011 |
Jan
|
Feb
(18) |
Mar
(39) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Manuel T. <ti...@rz...> - 2002-01-07 14:50:36
|
Hi! I try to build 1.10alpha3, but i get a lot of warnings like this one: "/python-ldap-1.10alpha3/Modules/./template.c:143: warning: function = declaration isn't a prototype" ( in template.c and linkedlist.c, configure seems to work fine ). I also tried CVS200201041716, but when doing "python2.1 setup.py = install" gcc fails to compile=20 constants.c after dozens of=20 'LDAP_XYZ' undeclared (first use in this function) error-messages. Everything worked fine on a Linuxbox, but that doesn't help me..=20 Do you have any hints for me? Thanks,=20 Manuel |
|
From: Michael <mi...@st...> - 2002-01-04 23:55:13
|
HI! I've published a source distribution tar.gz to http://sourceforge.net/project/showfiles.php?group_id=2072 Please test it and take this one to make RPMs and other packages so that people can refer to a certain CVS timestamp when reporting errors. Ciao, Michael. |
|
From: Michael <mi...@st...> - 2002-01-04 22:56:20
|
Jens Vagelpohl wrote: > > this is only "half" the information needed to solve the problem. above the > traceback it should tell you what the attribute error is on. > > jens > > P.S.: as the author of the LDAPUserFolder product i can't make any > guarantees about zope 2.5 compatibility until there is a released final > version of zope 2.5. if you are in doubt you should test the same > situation using zope 2.4.3 I conclude that this has nothing to do with python-ldap and should therefore be discussed on a Zope-related mailing list. Ciao, Michael. |
|
From: Peeyush G. <pee...@ka...> - 2002-01-04 22:54:59
|
Michael,
Ur script works perfectly and i can see the debugging messages in my LDAP
server that it has been connected. But, as Jens pointed out in Zope mailing
list that he's able to run it successfully on Zope 2.5.0b3, I too installed
the same but it gives me the same error. I seem to be getting nearer to my
problem but still far. I still have no clue.
Thanks,
Peeysuh.
----- Original Message -----
From: "Michael Ströder" <mi...@st...>
To: "Peeyush Garg" <pee...@ka...>
Cc: <pyt...@li...>
Sent: Friday, January 04, 2002 11:03 AM
Subject: Re: Installation Problem
> Peeyush Garg wrote:
> >
> > If I try to access LDAP server from Zope it says
> > 'connection settings not ok....'.
>
> I'd suggest that you write a small test script to figure out if it's
> a python-ldap issue. You could open connection to your LDAP server
> and simply read root DSE entry (if LDAPv3 server).
>
> Something like
>
> ---------------------- snip ---------------------
> import ldap
>
> # Open LDAP connection
> l=ldap.open('myldaphost:port')
>
> # Read the root DSE
> l.search_s('',ldap.SCOPE_BASE,'(objectClass=*)')
>
> # Unbind and disconnect
> l.unbind_s()
> ---------------------- snip ---------------------
>
> Ciao, Michael.
>
> _______________________________________________
> Python-LDAP-dev mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
|
|
From: Jens V. <je...@zo...> - 2002-01-04 19:48:54
|
this is only "half" the information needed to solve the problem. above = the=20 traceback it should tell you what the attribute error is on. jens P.S.: as the author of the LDAPUserFolder product i can't make any=20 guarantees about zope 2.5 compatibility until there is a released final=20= version of zope 2.5. if you are in doubt you should test the same=20 situation using zope 2.4.3 On Friday, January 4, 2002, at 01:46 , Peeyush Garg wrote: > Hi, > > Let me explain the problem in more detail because I do not have a = 'direct' > traceback. I have Zope(2.5.0b2) and LDAP(2.0.18) server installed on = the > same Linux machine. If I try to access LDAP server from Zope it says > 'connection settings not ok....'. The interesting part is that when I > install LDAPUserFolder on another installation of Zope(2.4.3) on a = WinNT( > 4.1 > workstation) machine, it connects beautifully with the same settings. > > Following is a traceback that I get when I try to search for = users(without > even being connected, just for the purpose of getting some traceback): > > Traceback (innermost last): > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line = 151, in > publish_module > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line = 115, in > publish > File /home/zope/zope250b2/lib/python/Zope/__init__.py, line 158, in > zpublisher_exception_hook > (Object: acl_users) > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 99, = in > publish > File /home/zope/zope250b2/lib/python/ZPublisher/mapply.py, line 88, = in > mapply > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 40, = in > call_object > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, = line > 252, in __call__ > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, = line > 283, in _bindAndExec > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/App/special_dtml.py, line 172, = in > _exec > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, = line=20 > 76, > in render > (Object: cur_vals=3D"getUserDetails(encoded_dn=3Duser_dn, > format=3D'dictionary')") > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_In.py, line=20= > 695, > in renderwob > (Object: getLDAPSchema()) > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, = line=20 > 75, > in render > (Object: sk=3D"_['sequence-key']" > si=3D"_['sequence-item']" > cur_val=3D"_.string.join( cur_vals.get( sk, '' ) )") > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Util.py, = line > 159, in eval > (Object: _.string.join( cur_vals.get( sk, '' ) )) > (Info: sk) > File <string>, line 0, in ? > AttributeError: (see above) > > > Installing on WinNT did take me some half a day to make it working = (that=20 > was > my first experience with LDAP) but getting to connect from the same = Linux > machine has taken me 2 days without much luck. Any help is = appreciated. > > Thanks, > Peeyush. > ----- Original Message ----- > From: "Michael Str=F6der" <mi...@st...> > To: "Peeyush Garg" <pee...@ka...> > Cc: <pyt...@li...> > Sent: Friday, January 04, 2002 4:38 AM > Subject: Re: Installation Problem > > >> Peeyush Garg wrote: >>> >>> warning: build_py: file Lib/ldap.py (for module ldap) not found >> >> You can ignore that. >> >>> i could not find ldap.py even in current CVS. >> >> It has been substituted by Lib/ldap/*.py. >> >>> I cannot get to connect to LDAP server. Is this problem because of >>> the above file?? >> >> No. Any traceback you can send us? Note that _ldap.open() does not >> work anymore. Use ldap.open() instead. I've updated the README. >> >> Ciao, Michael. > > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: Michael <mi...@st...> - 2002-01-04 19:02:33
|
Peeyush Garg wrote:
>
> If I try to access LDAP server from Zope it says
> 'connection settings not ok....'.
I'd suggest that you write a small test script to figure out if it's
a python-ldap issue. You could open connection to your LDAP server
and simply read root DSE entry (if LDAPv3 server).
Something like
---------------------- snip ---------------------
import ldap
# Open LDAP connection
l=ldap.open('myldaphost:port')
# Read the root DSE
l.search_s('',ldap.SCOPE_BASE,'(objectClass=*)')
# Unbind and disconnect
l.unbind_s()
---------------------- snip ---------------------
Ciao, Michael.
|
|
From: Joe L. <jl...@op...> - 2002-01-04 18:56:08
|
This definitely looks like something specific to Zope and this beta release of said product. You likely want to ask lists specific to Zope. There are n= o traces or exceptions coming from access to the python-ldap modules, and so = I would suggest using a released Zope product (2.4.x) instead of the 2.5 beta series. On 1/4/02 10:46 AM, "Peeyush Garg" <pee...@ka...> wrote: > Hi, >=20 > Let me explain the problem in more detail because I do not have a 'direct= ' > traceback. I have Zope(2.5.0b2) and LDAP(2.0.18) server installed on the > same Linux machine. If I try to access LDAP server from Zope it says > 'connection settings not ok....'. The interesting part is that when I > install LDAPUserFolder on another installation of Zope(2.4.3) on a WinNT(= 4.1 > workstation) machine, it connects beautifully with the same settings. >=20 > Following is a traceback that I get when I try to search for users(withou= t > even being connected, just for the purpose of getting some traceback): >=20 > Traceback (innermost last): > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 151, in > publish_module > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 115, in > publish > File /home/zope/zope250b2/lib/python/Zope/__init__.py, line 158, in > zpublisher_exception_hook > (Object: acl_users) > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 99, in > publish > File /home/zope/zope250b2/lib/python/ZPublisher/mapply.py, line 88, in > mapply > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 40, in > call_object > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, line > 252, in __call__ > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, line > 283, in _bindAndExec > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/App/special_dtml.py, line 172, in > _exec > (Object: manage_userrecords) > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, line 76, > in render > (Object: cur_vals=3D"getUserDetails(encoded_dn=3Duser_dn, > format=3D'dictionary')") > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_In.py, line 695, > in renderwob > (Object: getLDAPSchema()) > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, line 75, > in render > (Object: sk=3D"_['sequence-key']" > si=3D"_['sequence-item']" > cur_val=3D"_.string.join( cur_vals.get( sk, '' ) )") > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Util.py, line > 159, in eval > (Object: _.string.join( cur_vals.get( sk, '' ) )) > (Info: sk) > File <string>, line 0, in ? > AttributeError: (see above) >=20 >=20 > Installing on WinNT did take me some half a day to make it working (that = was > my first experience with LDAP) but getting to connect from the same Linux > machine has taken me 2 days without much luck. Any help is appreciated. >=20 > Thanks, > Peeyush. > ----- Original Message ----- > From: "Michael Str=F6der" <mi...@st...> > To: "Peeyush Garg" <pee...@ka...> > Cc: <pyt...@li...> > Sent: Friday, January 04, 2002 4:38 AM > Subject: Re: Installation Problem >=20 >=20 >> Peeyush Garg wrote: >>>=20 >>> warning: build_py: file Lib/ldap.py (for module ldap) not found >>=20 >> You can ignore that. >>=20 >>> i could not find ldap.py even in current CVS. >>=20 >> It has been substituted by Lib/ldap/*.py. >>=20 >>> I cannot get to connect to LDAP server. Is this problem because of >>> the above file?? >>=20 >> No. Any traceback you can send us? Note that _ldap.open() does not >> work anymore. Use ldap.open() instead. I've updated the README. >>=20 >> Ciao, Michael. >=20 >=20 > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: Peeyush G. <pee...@ka...> - 2002-01-04 18:46:52
|
Hi,
Let me explain the problem in more detail because I do not have a 'direct'
traceback. I have Zope(2.5.0b2) and LDAP(2.0.18) server installed on the
same Linux machine. If I try to access LDAP server from Zope it says
'connection settings not ok....'. The interesting part is that when I
install LDAPUserFolder on another installation of Zope(2.4.3) on a WinNT(4.1
workstation) machine, it connects beautifully with the same settings.
Following is a traceback that I get when I try to search for users(without
even being connected, just for the purpose of getting some traceback):
Traceback (innermost last):
File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 151, in
publish_module
File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 115, in
publish
File /home/zope/zope250b2/lib/python/Zope/__init__.py, line 158, in
zpublisher_exception_hook
(Object: acl_users)
File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 99, in
publish
File /home/zope/zope250b2/lib/python/ZPublisher/mapply.py, line 88, in
mapply
(Object: manage_userrecords)
File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 40, in
call_object
(Object: manage_userrecords)
File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, line
252, in __call__
(Object: manage_userrecords)
File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, line
283, in _bindAndExec
(Object: manage_userrecords)
File /home/zope/zope250b2/lib/python/App/special_dtml.py, line 172, in
_exec
(Object: manage_userrecords)
File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, line 76,
in render
(Object: cur_vals="getUserDetails(encoded_dn=user_dn,
format='dictionary')")
File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_In.py, line 695,
in renderwob
(Object: getLDAPSchema())
File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, line 75,
in render
(Object: sk="_['sequence-key']"
si="_['sequence-item']"
cur_val="_.string.join( cur_vals.get( sk, '' ) )")
File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Util.py, line
159, in eval
(Object: _.string.join( cur_vals.get( sk, '' ) ))
(Info: sk)
File <string>, line 0, in ?
AttributeError: (see above)
Installing on WinNT did take me some half a day to make it working (that was
my first experience with LDAP) but getting to connect from the same Linux
machine has taken me 2 days without much luck. Any help is appreciated.
Thanks,
Peeyush.
----- Original Message -----
From: "Michael Ströder" <mi...@st...>
To: "Peeyush Garg" <pee...@ka...>
Cc: <pyt...@li...>
Sent: Friday, January 04, 2002 4:38 AM
Subject: Re: Installation Problem
> Peeyush Garg wrote:
> >
> > warning: build_py: file Lib/ldap.py (for module ldap) not found
>
> You can ignore that.
>
> > i could not find ldap.py even in current CVS.
>
> It has been substituted by Lib/ldap/*.py.
>
> > I cannot get to connect to LDAP server. Is this problem because of
> > the above file??
>
> No. Any traceback you can send us? Note that _ldap.open() does not
> work anymore. Use ldap.open() instead. I've updated the README.
>
> Ciao, Michael.
|
|
From: Michael <mi...@st...> - 2002-01-04 14:38:24
|
Peeyush Garg wrote: > > warning: build_py: file Lib/ldap.py (for module ldap) not found You can ignore that. > i could not find ldap.py even in current CVS. It has been substituted by Lib/ldap/*.py. > I cannot get to connect to LDAP server. Is this problem because of > the above file?? No. Any traceback you can send us? Note that _ldap.open() does not work anymore. Use ldap.open() instead. I've updated the README. Ciao, Michael. |
|
From: Michael <mi...@st...> - 2002-01-04 14:02:49
|
Rich Salz wrote: > > > > Are you positively sure that's impossible to #ifdef the differences? > > > > Somewhat. > ... > > > You're welcome to jump on in proving the opposite. > > It might not be possible to auto-detect, but I would expect something > like "--with-netscape" for example would work. :) Yes, that would work. But someone has to be willing to implement *and* maintain it. > Anyone thought about doing a pure-python solution? Yes I already thought about it while working with Jeremy Hylton's asn1 module. Especially it would be fairly easy to implement a completely re-entrant module in pure Python. And also more friendly to Jython people. But the BER stuff is a major PITA. Also for performance reasons the BER implementation should be implemented in C. Or a module pair like StringIO/cStringIO or pickle/cPickle. Ciao, Michael. |
|
From: Rich S. <rs...@zo...> - 2002-01-04 13:41:45
|
> > Are you positively sure that's impossible to #ifdef the differences? > > Somewhat. ... > You're welcome to jump on in proving the opposite. It might not be possible to auto-detect, but I would expect something like "--with-netscape" for example would work. :) Anyone thought about doing a pure-python solution? -- Zolera Systems, Securing web services (XML, SOAP, Signatures, Encryption) http://www.zolera.com |
|
From: Michael <mi...@st...> - 2002-01-04 12:37:18
|
Mauro Cicognini wrote: > > > Unfortunately the API of the > > LDAP C SDKs diverged some much that it's unpossible to #ifdef the > > differences. It's a decision for either one of those. > > Are you positively sure that's impossible to #ifdef the differences? Somewhat. > As far as I'm concerned, I'd rather like the idea of linking against > iPlanet/Mozilla/Netscape etc. who are the guys that brought out LDAP in > the first place. > Just a matter of personal taste ;-) You're welcome to jump on in proving the opposite. Ciao, Michael. |
|
From: Mauro C. <mci...@si...> - 2002-01-04 09:42:26
|
Michael wrote: > Hmm, maybe python-ldap sits on top of the wrong LDAP C lib? We > currently do not have Win32 support and it's not thread-safe. > > In opposite iPlanet C SDK (see > http://www.mozilla.org/directory/csdk.html) is known to be thread-safe > and is available on various platforms. Unfortunately the API of the > LDAP C SDKs diverged some much that it's unpossible to #ifdef the > differences. It's a decision for either one of those. Are you positively sure that's impossible to #ifdef the differences? As far as I'm concerned, I'd rather like the idea of linking against iPlanet/Mozilla/Netscape etc. who are the guys that brought out LDAP in the first place. Just a matter of personal taste ;-) BTW, I had promised I'd look into the Win32 support (which means most of all compiling OpenLDAP on Win32), and I still mean to try though I haven't had a chance yet. Mauro |
|
From: Peeyush G. <pee...@ka...> - 2002-01-04 03:37:22
|
Thanks for the inputs. But, now I get another error... warning: build_py: file Lib/ldap.py (for module ldap) not found can this warning be ignored?? i could not find ldap.py even in current CVS. Even though it is compiled and Zope doesn't complain (it shows installed product), I cannot get to connect to LDAP server. Is this problem because of the above file?? ----- Original Message ----- From: "Michael Ströder" <mi...@st...> To: "Peeyush Garg" <pee...@ka...> Cc: <pyt...@li...> Sent: Thursday, January 03, 2002 3:32 AM Subject: Re: Installation Problem > Peeyush Garg wrote: > > > > From: "Jens Vagelpohl" <je...@zo...> > > > > > it looks like your python came as part of a zope binary. those may not > > > include all necessary header files. > > > > > > i suggest you get a separate "real" python install and use the zope source > > > distribution instead. > > > > That's correct. I installed it from a binary. Thanks a lot. But meanwhile, I > > created an empty config.h and it seems to work. Any problems expected in > > future because of this?? > > Please follow Jens' advice! > > Get a full install of the Python interpreter with all header files > necessary to build Python C extensions! Otherwise we python-ldap > people have no chance to help you. (I'm glad that Jens mentioned the > stripped binary Python interpreter of Zope since I have no idea > about Zope-specific things). > > Ciao, Michael. > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: Michael <mi...@st...> - 2002-01-04 00:46:37
|
HI! Did someone ever use the stuff implemented in Modules/templates.c ? It's not documented at all and include/disptmpl.h seems to be removed from OpenLDAP HEAD. Ciao, Michael. |
|
From: Jason T. <ja...@ti...> - 2002-01-03 14:50:35
|
Michael,
On Thu, Jan 03, 2002 at 03:01:53PM +0100, Michael Ströder wrote:
> Jason Tishler wrote:
> > On Wed, Jan 02, 2002 at 07:19:54PM +0100, Michael Ströder wrote:
> > > But beware it *solely* works with OpenLDAP 2 libs which up to now
> > > are not available on e.g. Win32. Win32 C compiler hackers jump on
> > > in!
> >
> > I don't know about the precise status of Win32, but it works very nicely
> > under Cygwin.
>
> Can you please be more verbose?
Yes, sorry for my terseness. I didn't think people would be interested,
so I opted for the short version.
> Did you compile DLLs of OpenLDAP 2 libs?
No, just static ones. When the Cygwin-ized libtool work is completed,
then they should come for free...
> Do you have python-ldap working?
Yes, I have been using python-ldap under Cygwin since August 2000.
The minor Cygwin specific changes were committed to python-ldap CVS in
March 2001:
http://www.geocrawler.com/archives/3/1568/2001/3/0/5307464/
> Any tweaking necessary during build process?
Not much. See attached setup.cfg and the following for a small OpenLDAP
2.x patch:
http://sources.redhat.com/ml/cygwin/2001-10/msg01248.html
Note that the setup.cfg libs line is only necessary on a temporary
basis. It can go back to its default value once a DLL rebase solution
to Cygwin's fork() problem is implemented. If interested, see the
following:
http://sources.redhat.com/ml/cygwin/2001-12/msg00894.html
> Willing to share Win32 binaries?
Of course! A pre-built version for Cygwin Python 2.2, installable by
Cygwin's setup.exe is available at:
http://www.tishler.net/jason/software/python-ldap/python-ldap-20020101-1.tar.bz2
If people are interested, then I will formally contribute a pre-built
python-ldap to the standard Cygwin distribution.
Jason
|
|
From: Michael <mi...@st...> - 2002-01-03 14:00:54
|
Jason Tishler wrote: > > On Wed, Jan 02, 2002 at 07:19:54PM +0100, Michael Ströder wrote: > > Ben Ocean wrote: > > > Darn. I was afraid of that. Is there no bridge for python2x and openldap2x? > > > > There is. Check out recent version from CVS. > > > > But beware it *solely* works with OpenLDAP 2 libs which up to now > > are not available on e.g. Win32. Win32 C compiler hackers jump on > > in! > > I don't know about the precise status of Win32, but it works very nicely > under Cygwin. Can you please be more verbose? Did you compile DLLs of OpenLDAP 2 libs? Do you have python-ldap working? Any tweaking necessary during build process? Willing to share Win32 binaries? Ciao, Michael. |
|
From: Jason T. <ja...@ti...> - 2002-01-03 13:49:33
|
On Wed, Jan 02, 2002 at 07:19:54PM +0100, Michael Ströder wrote: > Ben Ocean wrote: > > Darn. I was afraid of that. Is there no bridge for python2x and openldap2x? > > There is. Check out recent version from CVS. > > But beware it *solely* works with OpenLDAP 2 libs which up to now > are not available on e.g. Win32. Win32 C compiler hackers jump on > in! I don't know about the precise status of Win32, but it works very nicely under Cygwin. Jason |
|
From: Michael <mi...@st...> - 2002-01-03 11:32:17
|
Peeyush Garg wrote: > > From: "Jens Vagelpohl" <je...@zo...> > > > it looks like your python came as part of a zope binary. those may not > > include all necessary header files. > > > > i suggest you get a separate "real" python install and use the zope source > > distribution instead. > > That's correct. I installed it from a binary. Thanks a lot. But meanwhile, I > created an empty config.h and it seems to work. Any problems expected in > future because of this?? Please follow Jens' advice! Get a full install of the Python interpreter with all header files necessary to build Python C extensions! Otherwise we python-ldap people have no chance to help you. (I'm glad that Jens mentioned the stripped binary Python interpreter of Zope since I have no idea about Zope-specific things). Ciao, Michael. |
|
From: Peeyush G. <pee...@ka...> - 2002-01-03 02:45:53
|
That's correct. I installed it from a binary. Thanks a lot. But meanwhile, I created an empty config.h and it seems to work. Any problems expected in future because of this?? Peeyush. ----- Original Message ----- From: "Jens Vagelpohl" <je...@zo...> To: "Peeyush Garg" <pee...@ka...> Cc: <pyt...@li...> Sent: Wednesday, January 02, 2002 6:42 PM Subject: Re: Installation Problem it looks like your python came as part of a zope binary. those may not include all necessary header files. i suggest you get a separate "real" python install and use the zope source distribution instead. jens On Wednesday, January 2, 2002, at 09:16 , Peeyush Garg wrote: > Hi, > > I get the following error message while doing a 'make'. > > In file included from /home/zope/zope250b2/include/python2.1/Python.h:54, > from Modules/common.h:27, > from Modules/LDAPObject.c:10: > /home/zope/zope250b2/include/python2.1/pyport.h:4:46: config.h: No such > file or directory > error: command 'gcc' failed with exit status 1 > As I understand the problem is with the file config.h. It simply doesn't > exist in th Python2.1 include directory. But it is referenced in Python.h. > Am I having some files missing in my python installation?? > Any thoughts... > > Thanks, > Peeyush. |
|
From: Jens V. <je...@zo...> - 2002-01-03 02:42:25
|
it looks like your python came as part of a zope binary. those may not=20= include all necessary header files. i suggest you get a separate "real" python install and use the zope = source=20 distribution instead. jens On Wednesday, January 2, 2002, at 09:16 , Peeyush Garg wrote: > Hi, > =A0 > I get the following error message while doing a 'make'. > =A0 > In file included from = /home/zope/zope250b2/include/python2.1/Python.h:54, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from = Modules/common.h:27, > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from = Modules/LDAPObject.c:10: > /home/zope/zope250b2/include/python2.1/pyport.h:4:46: config.h: No = such=20 > file or directory > error: command 'gcc' failed with exit status 1 > As I understand the problem is with the file config.h. It simply = doesn't=20 > exist in th Python2.1 include directory. But it is referenced in = Python.h. > Am I having some files missing in my python installation?? > Any thoughts... > =A0 > Thanks, > Peeyush. |
|
From: Peeyush G. <pee...@ka...> - 2002-01-03 02:17:33
|
Hi,
I get the following error message while doing a 'make'.
In file included from =
/home/zope/zope250b2/include/python2.1/Python.h:54,
from Modules/common.h:27,
from Modules/LDAPObject.c:10:
/home/zope/zope250b2/include/python2.1/pyport.h:4:46: config.h: No such =
file or directory
error: command 'gcc' failed with exit status 1
As I understand the problem is with the file config.h. It simply doesn't =
exist in th Python2.1 include directory. But it is referenced in =
Python.h. Am I having some files missing in my python installation??
Any thoughts...
Thanks,
Peeyush.
|
|
From: Michael <mi...@st...> - 2002-01-03 00:06:14
|
"Lorenzo M. Catucci" wrote: > > 1. If you look into ldap.h, ldap_modrdn is deprecated, and should be > expressed as a rename with a null newsuperior. I think in > PyArg_ParseTuple( args, "sss|i", &dn, &newrdn, &newSuperior, &delold ) > the last "s" should be a z, therefore allowing (in the future) to move > mod_rdn from _ldap to a back-compatibility helper in ldap.py like in > > def mod_rdn(dn, newrdn, delete=1): > _ldap.rename(dn,newrdn,None,delete) > > Even better, if newsuperior is made optional and defaulted to NULL, > the user can simply forget about mod_rdn in the long term and choose > between: > rename(dn, newrdn) > rename(dn, newrdn, newsuperior) /bin/done BTW always remember: You can do strange things with ModRDN operation with non-leaf entries on an OpenLDAP 1.x server. You can even abuse it to do very fast sub-tree deletion. Better called sub-tree hiding... ;-) Ciao, Michael. |
|
From: Michael <mi...@st...> - 2002-01-03 00:02:24
|
Ben Ocean wrote: > > --with-kerberos --with-kerberos-lib=/usr/krb5-1.2.2/src/lib BTW: Direct support for Kerberos is deprecated with LDAPv3 (here OpenLDAP 2). It should be done via SASL bind. Hmm, any takers? Keith...? Ciao, Michael. |
|
From: Michael <mi...@st...> - 2002-01-02 23:10:49
|
Ben Ocean wrote: > > cvs > -d:pserver:ano...@cv...:/cvsroot/python-ldap > login > > cvs -z3 > -d:pserver:ano...@cv...:/cvsroot/python-ldap > co modulename modulename is python-ldap > At 09:49 PM 1/2/02 +0100, you wrote: > >Ben Ocean wrote: > > > > > > I'm afraid I'm thoroughly confused now! > > > <disclaimer> This is my first time with CVS</disclaimer> > > > >Well, it seems you should use Joe's RPMs. He built them recently. BTW: The URL is http://www.open-it.org/download/redhat7.2/ > Fine, but will that default to all these flags? > > #sh configure --with-ldap=/usr/local/openldap There's no ./configure in the recent version. The build and installation process uses DistUtils (shipped with Python 2.0+). You have to edit setup.cfg to reflect the position of your OpenLDAP 2 headers and libs and invoke $ python setup.py build If that was successful you invoke as root $ python setup.py install Afterwards you should be able to use without errors $ python -c "import ldap" Ciao, Michael. |