From: Gene Yu <ge...@si...> - 2000-05-22 19:18:00
|
I'm new to the list but I have some thoughts to add to the discussion in the archives from February. I'm using the LDAP module to build Web interfaces for directories that are very large and efficient pagination is a serious concern. Thanks to Michael Stroeder for pointing out that I can to use asynchronous searching to pull one record at a time, canceling the search when I reach the last record on the page. I've used a similar method with relational databases in Perl. But I don't like pulling so much data that I'm just going to throw away. Also, without some way of pulling the records in sorted order, I need the whole set anyway if I want to present them in a logical way. The Netscape SDK has a Server-Side Sorting control and a Virtual List View control that I'd love to be able to use in python. They published a couple of Internet Drafts: http://www.ietf.org/internet-drafts/draft-ietf-ldapext-ldapv3-vlv-04.txt http://www.ietf.org/internet-drafts/draft-ietf-ldapext-sorting-02.txt Another related topic I discussed with Michael is callbacks. I think I see now how I can get some of the effects of callbacks using asynchronous calls, but it would be a useful feature in the API as well. HTML formatting of results, for instance, can sometimes be much simplified. Thanks also to everyone who contributed to the LDAP module. It's a crucial protocol for any language to support. Gene -- Gene Yu <ge...@si...> |
From: Xander v. E. <xa...@bo...> - 2000-10-17 08:15:24
|
Hello, Could anybody tell me where i can find the documentation of the = python-ldap module? Where there is clearly explained wich functions there are and how they = work. I've some trouble with adding persons to the ldap server. I managed to = add organisationalunits. I use this code: try: dn =3D "cn=3DJorgen, dc=3DPeople, dc=3DMailinglist,o=3Dbos,c=3Dnl" print "Updating", repr(dn) l.add_s(dn, [ ("cn", ["Jorgen"]), ("givenname", ["Jorgen"]), ("objectclass",["top"]), ("objectclass",["person"]), ("objectclass",["organizationalperson"]), ("Phone", ["065464894"]), ("description", ["Miljonair"]) ] ) except ldap.LDAPError: pass l.unbind() I get no error's but after i execute it, it isn't inserted........ Best. Regards, Xander van Es LET OP!: nieuw adres (tel. + fax ongewijzigd). Bos pioneers in web-building Telefoonweg 44 b 6712 GD Ede tel +31 318 693111 fax + 31 318 693042 http://www.bos.nl |
From: Marc C. <mar...@ya...> - 2001-07-26 10:13:49
|
Hi, I'm testing the web2ldap software, but it's being impossible to me to install it. I'm trying to install it in a Windows system, so I downloaded the software, the libs and Phyton, I put the dlls in the right folder, I ran Python, I loaded the web2ldap.py script in the sbin folder and when I tried to ran it, I obtained the following error: Traceback (innermost last): File "C:\web2ldap-0.9.4\sbin\web2ldap.py", line 33, in ? import w2lcore,w2lhandler,msHTTPServer,msHTTPHandler,ipadr File "C:\web2ldap-0.9.4\pylib\w2lhandler.py", line 11, in ? import sys,os,time,socket,msshelve,msgzip,\ File "C:\web2ldap-0.9.4\pylib\ldapdns.py", line 25, in ? DNS.ParseResolvConf() File "C:\web2ldap-0.9.4\pylib\DNS\Base.py", line 18, in ParseResolvConf lines=open("/etc/resolv.conf").readlines() IOError: [Errno 2] No such file or directory: '/etc/resolv.conf' I looked for the resolv.conf file in my computer and it seems not to exist, so, how can I fix it? Thanks, Marc __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |
From: Kaeidinejad, S. <Sha...@dg...> - 2001-12-10 10:47:17
|
unsubscribe |
From: <rf...@vo...> - 2002-07-16 15:00:16
|
Hi ! I'm new to python and need a connection to our ldap via python. I have downloaded the win32 version, _ldap.pyd and ldap.py. The readme file for win32 says that is "NOT SAFE" for multi-threading, but the file itself has a date mark of 1996. Is this the version I should use or has it been updated to a version that is safe ? I don't see any real install instructions (other than the readme) and I don't see any actual examples of how the calls s/b done. Does anyone know of anywhere I can get some real-life examples of binds, searches, modifies ? The included help files don't have install instructions. Thanks, Richard Ferry |
From: Mauro C. <mci...@si...> - 2002-07-17 10:02:30
Attachments:
smime.p7s
|
rf...@vo... wrote: >Hi ! > >I'm new to python and need a connection to our ldap via python. I have downloaded the win32 version, _ldap.pyd and ldap.py. > >The readme file for win32 says that is "NOT SAFE" for multi-threading, but the file itself has a date mark of 1996. > >Is this the version I should use or has it been updated to a version that is safe ? > >I don't see any real install instructions (other than the readme) and I don't see any actual examples of how the calls s/b done. Does anyone know of anywhere I can get some real-life examples of binds, searches, modifies ? The included help files don't have install instructions. > >Thanks, >Richard Ferry > > The multithreading part is not there yet. It's a newish development in the main tree; I haven't got the time to do it now for the Win32 part. I hope it will get there in the next few weeks. However, there is indeed a newer version under Win32, linked against OpenLDAP 2.0.23 instead of the old UMich libraries. It seems to work, but it's still in an experimental phase; if you wish to test it I may send the installer to you. Mind though that it's for Python 2.2. You also need to have the SASL DLL on your path. I may provide that if necessary. Mauro |
From: Mauro C. <mci...@si...> - 2002-07-18 07:34:16
Attachments:
smime.p7s
|
Richard Ferry wrote: >This is going to be put into a production environment, so I am hesitant to play w/ something experimental. What is your experience with it? > Well, the new version appears to work fine on my system; but I have no time to thoroughly test every feature. Mind that it's just a straightforward compilation of the same codebase everybody else's using, only done with MSVC++ (Win32, Intel). There are some quirks to the build process, but other than that, it compiles quite smoothly. >Re: the UMich libraries, are there any install instructions for this on a Win32 system? > > You just have to put the DLLs on your PATH. There's two of them, if I remember correctly, and both are needed; they were usually found (already compiled) on the UMich website. I may send you working (albeit old) binaries, if you have problems finding them. BR, Mauro |
From: Gabby J. <liz...@ho...> - 2003-10-14 13:38:54
|
I apologize for sending another help request on the infamous ldap_first_reference error but I just can't seem to figure it out even after reading old postings. I am using a RedHat 9.0 system with openldap-2.0.27-8 and python-2.2.2-26. I downloaded python-ldap-2.0.0pre14 and compiled. When I start python and try an "import ldap" statement, I get the following error message: Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/ldap/__init__.py", line 21, in ? from _ldap import * ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined symbol: ldap_first_reference I modified setup.cfg to try all of the following after reading old postings: libs = ldap_r lber sasl2 ssl crypto libs = ldap lber libs = ldap lber resolv libs = ldap_r lber libs = ldap_r ldap I compile python-ldap specifically with the version of python I am interested in: python2.2 setup.py build python2.2 setup.py install I have also seen the following comment "This is likely due to missing references.c and references.lo in libraries/libldap_r/Makefile.in". I didn't try this 'casue I couldn't find the file on my system. Could someone explain this in more detail? Any other thoughs on what is going wrong? Thank you. G.J. _________________________________________________________________ Page a contacts mobile phone with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com |
From: jean-marc p. <jea...@ac...> - 2003-10-14 13:51:36
|
Install also openldap openldap-stable-20030709.tgz. Jean-Marc -----Message d'origine----- De : pyt...@li... [mailto:pyt...@li...] De la part de Gabby James Envoy=E9 : mardi 14 octobre 2003 15:38 =C0 : pyt...@li... Objet : (no subject) I apologize for sending another help request on the infamous=20 ldap_first_reference error but I just can't seem to figure it out even after=20 reading old postings. I am using a RedHat 9.0 system with openldap-2.0.27-8 and python-2.2.2-26. =20 I downloaded python-ldap-2.0.0pre14 and compiled. When I start python and try=20 an "import ldap" statement, I get the following error message: Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/ldap/__init__.py", line 21, in ? from _ldap import * ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined symbol:=20 ldap_first_reference I modified setup.cfg to try all of the following after reading old postings: libs =3D ldap_r lber sasl2 ssl crypto libs =3D ldap lber libs = =3D ldap lber resolv libs =3D ldap_r lber libs =3D ldap_r ldap I compile python-ldap specifically with the version of python I am=20 interested in: python2.2 setup.py build python2.2 setup.py install I have also seen the following comment "This is likely due to missing=20 references.c and references.lo in libraries/libldap_r/Makefile.in". I didn't try this 'casue I couldn't find=20 the file on my system. Could someone explain this in more detail? Any other thoughs on what is going wrong? Thank you. G.J. _________________________________________________________________ Page a contact=92s mobile phone with MSN Messenger 6.0. Download it now FREE!=20 http://msnmessenger-download.com ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Python-LDAP-dev mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
From: <mi...@st...> - 2003-10-14 13:55:33
|
Gabby James wrote: > ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined > symbol: ldap_first_reference What does /usr/lib/python2.2/site-packages/_ldap.so say? Ciao, Michael. |
From: Joao S. O. B. <gw...@mp...> - 2003-10-14 14:07:44
|
Hi there! I just went through it (the ldap_first_reference error). It seens like=20 a mandatory first step for Python Ldapers. :-) I think I can figure out what is missing on your procedures: Did you perform a clean-up of th e compiled files between the changes=20 on setup.cfg? The error is in ldap_r, so you must put just ldap for linking, or fix=20 ldap_r yourself, according to the message I linked to in my earlier=20 e-mail today: libs =3D ldap lber resolv And them python setup.py clean --all python setup.py build su python setup.py install. I am rolling now.=20 On Tuesday 14 October 2003 1:38 pm, Gabby James wrote: > I apologize for sending another help request on the infamous > ldap_first_reference error but I just can't seem to figure it out > even after reading old postings. > > I am using a RedHat 9.0 system with openldap-2.0.27-8 and > python-2.2.2-26. I > downloaded python-ldap-2.0.0pre14 and compiled. When I start > python and try an > "import ldap" statement, I get the following error message: > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.2/site-packages/ldap/__init__.py", line > 21, in ? from _ldap import * > ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined > symbol: ldap_first_reference > > I modified setup.cfg to try all of the following after reading old > postings: libs =3D ldap_r lber sasl2 ssl crypto > libs =3D ldap lber > libs =3D ldap lber resolv > libs =3D ldap_r lber > libs =3D ldap_r ldap > > I compile python-ldap specifically with the version of python I am > interested in: > python2.2 setup.py build > python2.2 setup.py install > > I have also seen the following comment "This is likely due to > missing references.c and references.lo in > libraries/libldap_r/Makefile.in". I didn't try this 'casue I > couldn't find the > file on my system. Could someone explain this in more detail? > > Any other thoughs on what is going wrong? > > Thank you. > G.J. > > _________________________________________________________________ > Page a contact=92s mobile phone with MSN Messenger 6.0. Download it > now FREE! http://msnmessenger-download.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev =2D |