<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to support-requests</title><link href="https://sourceforge.net/p/python-ldap/support-requests/" rel="alternate"/><link href="https://sourceforge.net/p/python-ldap/support-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/python-ldap/support-requests/</id><updated>2012-05-31T21:35:25Z</updated><subtitle>Recent changes to support-requests</subtitle><entry><title>Installation on AIX with gcc</title><link href="https://sourceforge.net/p/python-ldap/support-requests/17/" rel="alternate"/><published>2012-05-31T21:35:25Z</published><updated>2012-05-31T21:35:25Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net320d463554121b304e4b9a354d027aa4ac19ab4c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Had endless issues trying to install python-ldap on AIX 6.1 when the IBM compiler is not installed.&lt;br /&gt;
Tried to add the following to the setup.cfg:&lt;br /&gt;
[build]&lt;br /&gt;
compiler = gcc&lt;br /&gt;
This gave a not supported error message. D'oh&lt;br /&gt;
Ended up doing a "python setup.cfg --dryrun build" so I could get the commands it wanted to do.  Then I gcc'd them from xlc_r.  This is what I ended up using:&lt;br /&gt;
# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/LDAPObject.c -o build/temp.aix-6.1-2.6/Modules/LDAPObject.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/ldapcontrol.c -o build/temp.aix-6.1-2.6/Modules/ldapcontrol.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/common.c -o build/temp.aix-6.1-2.6/Modules/common.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/constants.c -o build/temp.aix-6.1-2.6/Modules/constants.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/errors.c -o build/temp.aix-6.1-2.6/Modules/errors.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/functions.c -o build/temp.aix-6.1-2.6/Modules/functions.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/schema.c -o build/temp.aix-6.1-2.6/Modules/schema.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/ldapmodule.c -o build/temp.aix-6.1-2.6/Modules/ldapmodule.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/message.c -o build/temp.aix-6.1-2.6/Modules/message.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/version.c -o build/temp.aix-6.1-2.6/Modules/version.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/options.c -o build/temp.aix-6.1-2.6/Modules/options.o -g&lt;/p&gt;
&lt;p&gt;# gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.9 -IModules -I/usr/local/include -I/usr/local/include/sasl -I/opt/freeware/include/python2.6 -I/usr/include/python2.6 -c Modules/berval.c -o build/temp.aix-6.1-2.6/Modules/berval.o -g&lt;/p&gt;
&lt;p&gt;# /opt/freeware/lib/python2.6/config/ld_so_aix gcc -v -pthread -I/opt/freeware/include -DAIX_GENUINE_CPLUSCPLUS  -bI:/opt/freeware/lib/python2.6/config/python.exp /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/LDAPObject.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/ldapcontrol.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/common.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/constants.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/errors.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/functions.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/schema.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/ldapmodule.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/message.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/version.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/options.o /apps/media/python/python-ldap-2.4.9/build/temp.aix-6.1-2.6/Modules/berval.o -L/usr/local/lib -lldap_r -llber -lsasl2 -lssl -lcrypto -o /apps/media/python/python-ldap-2.4.9/build/lib.aix-6.1-2.6/_ldap.so&lt;/p&gt;
&lt;p&gt;It would be real nice if gcc and AIX 6.1 was a supported combo.  PLEASE :-)  Or tell me what I'm doing wrong.&lt;br /&gt;
And I did edit the setup.cfg:&lt;br /&gt;
[_ldap]&lt;br /&gt;
libs = ldap_r lber sasl2 ssl crypto&lt;br /&gt;
library_dirs = /usr/local/lib&lt;br /&gt;
include_dirs = /usr/local/include /usr/local/include/sasl&lt;br /&gt;
defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R&lt;br /&gt;
extra_objects =&lt;br /&gt;
extra_compile_args =&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>LDAPS AD LDS</title><link href="https://sourceforge.net/p/python-ldap/support-requests/16/" rel="alternate"/><published>2011-04-21T12:45:11Z</published><updated>2011-04-21T12:45:11Z</updated><author><name>Philippe Doco</name><uri>https://sourceforge.net/u/pdoco/</uri></author><id>https://sourceforge.nete40bf1e51e71ae5941ed1b683c4f59e206be8ea3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
We are trying to connect to an AD DLS by using python-ldap library. Everything s fine with LDAP (389), we are able to get data (after authentification). &lt;br /&gt;
We need to connect to AD LDS using SSL protocol and we can't connect to AD LDS (636).&lt;/p&gt;
&lt;p&gt;It seems the problem comes from the TLS.&lt;br /&gt;
The trace is : TLS: can't connect.&lt;/p&gt;
&lt;p&gt;We succed to connect to AD LDS with LdapAdmin Tools (Authentification, 636).&lt;/p&gt;
&lt;p&gt;Here are the logs. Microsoft support answers they are RFC compliant.&lt;br /&gt;
Could you help us about this problem ??&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Solaris 11 - ImportError - No module named controls</title><link href="https://sourceforge.net/p/python-ldap/support-requests/15/" rel="alternate"/><published>2011-04-08T01:06:54Z</published><updated>2011-04-08T01:06:54Z</updated><author><name>c00p</name><uri>https://sourceforge.net/u/coopsta/</uri></author><id>https://sourceforge.net9e1e6c6ff429a2cc7e36bcabc2bfc63f07ca0d57</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I downloaded the latest 'main' snapshot of the cvs to build python-ldap on to Soalris 11 Express. I have compiled my own version of OpenLDAP 2.4.23 and cyrus-sasl 2.1.23 and I can build the module fine and see it in my /usr/lib/python2.6/site-packages directory but I am having import errors.&lt;/p&gt;
&lt;p&gt;I am not sure how to debug here, but in '/usr/lib/python2.6/site-packages/ldap' there is no controls.py* which I believe I should have.&lt;/p&gt;
&lt;p&gt;ERROR:&lt;br /&gt;
crl@emailgw4:/local/src/cyrus-sasl-2.1.23$ python&lt;br /&gt;
Python 2.6.4 (r264:75706, Oct 21 2010, 03:48:43) [C] on sunos5&lt;br /&gt;
Type "help", "copyright", "credits" or "license" for more information.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import ldap&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;br /&gt;
File "/usr/lib/python2.6/site-packages/ldap/__init__.py", line 77, in &amp;lt;module&amp;gt;&lt;br /&gt;
from functions import open,initialize,init,get_option,set_option&lt;br /&gt;
File "/usr/lib/python2.6/site-packages/ldap/functions.py", line 35, in &amp;lt;module&amp;gt;&lt;br /&gt;
from ldap.ldapobject import LDAPObject&lt;br /&gt;
File "/usr/lib/python2.6/site-packages/ldap/ldapobject.py", line 38, in &amp;lt;module&amp;gt;&lt;br /&gt;
from ldap.controls import LDAPControl,DecodeControlTuples,RequestControlTuples&lt;br /&gt;
ImportError: No module named controls&lt;/p&gt;
&lt;p&gt;Please let me know if you need any more data, I am happy to assist.&lt;/p&gt;
&lt;p&gt;Any advice on what I can do to fix this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Compilation Error </title><link href="https://sourceforge.net/p/python-ldap/support-requests/14/" rel="alternate"/><published>2009-04-13T19:29:59Z</published><updated>2009-04-13T19:29:59Z</updated><author><name>Ben Thomasson</name><uri>https://sourceforge.net/u/benthomasson/</uri></author><id>https://sourceforge.net0d33f07b9bccc714ab1b7ea72eab616e25452bf5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I get this error while trying to install python-ldap:&lt;/p&gt;
&lt;p&gt;Modules/constants.c: In function `LDAPinit_constants':&lt;br /&gt;
Modules/constants.c:179: error: `LDAP_OPT_X_TLS_CRLCHECK' undeclared (first use in this function)&lt;br /&gt;
Modules/constants.c:179: error: (Each undeclared identifier is reported only once&lt;br /&gt;
Modules/constants.c:179: error: for each function it appears in.)&lt;br /&gt;
Modules/constants.c:180: error: `LDAP_OPT_X_TLS_CRL_NONE' undeclared (first use in this function)&lt;br /&gt;
Modules/constants.c:181: error: `LDAP_OPT_X_TLS_CRL_PEER' undeclared (first use in this function)&lt;br /&gt;
Modules/constants.c:182: error: `LDAP_OPT_X_TLS_CRL_ALL' undeclared (first use in this function)&lt;/p&gt;
&lt;p&gt;uname -a&lt;br /&gt;
Linux neat 2.6.9-42.7.ELsmp #1 SMP Tue Sep 5 18:29:39 EDT 2006 i686 i686 i386 GNU/Linux&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Fix compilation under *BSD</title><link href="https://sourceforge.net/p/python-ldap/support-requests/13/" rel="alternate"/><published>2006-11-16T13:16:23Z</published><updated>2006-11-16T13:16:23Z</updated><author><name>Henry PRÊCHEUR</name><uri>https://sourceforge.net/u/henry-precheur/</uri></author><id>https://sourceforge.net71c9b083c3b7122435c24145e501be1ce6f2742a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;python-ldap does not compile under OpenBSD. The attached patch fix the problem :&lt;/p&gt;
&lt;p&gt;- added /usr/local/{lib,include} in setup.cfg&lt;br /&gt;
- removed -I/usr/include/sasl from setup.cfg and changed #include &amp;lt;sasl.h&amp;gt; to #include &amp;lt;sasl/sasl.h&amp;gt; in Modules/LDAPObject.c&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ldap deadlock problem</title><link href="https://sourceforge.net/p/python-ldap/support-requests/12/" rel="alternate"/><published>2006-05-29T05:34:06Z</published><updated>2006-05-29T05:34:06Z</updated><author><name>panjunyong</name><uri>https://sourceforge.net/u/panjunyong/</uri></author><id>https://sourceforge.netaa8872ad1d37bdcc7e86c1c803b671c465f8da2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Our server are deadlocked sometimes. See the attached&lt;br /&gt;
deadlock traceback. &lt;/p&gt;
&lt;p&gt;Our server is using Zope 2.8/Plone 2.1, LDAPUserFolder&lt;br /&gt;
2.6, python-ldap 2.2.0-1 and libldap2(2.1.30-8). &lt;/p&gt;
&lt;p&gt;We have set operation timeout to 5 seconds. But It&lt;br /&gt;
still deadlocked.&lt;/p&gt;
&lt;p&gt;I found someone posted similiar problem here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mail.zope.org/pipermail/zope/2005-March/157400.html" rel="nofollow"&gt;http://mail.zope.org/pipermail/zope/2005-March/157400.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Is this bug is python-ldap related or libldap2 related?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Cannot download python-ldap win32</title><link href="https://sourceforge.net/p/python-ldap/support-requests/11/" rel="alternate"/><published>2005-09-22T08:09:02Z</published><updated>2005-09-22T08:09:02Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net58b13cd12372b1ffd755e77f9f844dfc4b1be446</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to download the win32 python-ldap binary&lt;br /&gt;
from mauro, but his page is down&lt;br /&gt;
(http://www.agescibs.org). Is there another download&lt;br /&gt;
location for win32?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Manuel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>import fails for python-ldap on Mac OS X 10.4</title><link href="https://sourceforge.net/p/python-ldap/support-requests/10/" rel="alternate"/><published>2005-05-05T23:41:03Z</published><updated>2005-05-05T23:41:03Z</updated><author><name>Marty Heyman</name><uri>https://sourceforge.net/u/mheyman/</uri></author><id>https://sourceforge.net015ef76c939e1bec2c583f88acce4e7174a3d24a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Building python-ldap-2.0.7, downloaded today. Target&lt;br /&gt;
system: Apple G4 Powerbook running clean recent install&lt;br /&gt;
of Mac OS X 10.4 (Tiger). There is an install of&lt;br /&gt;
Python2.4 on this system and it has a similar problem.&lt;br /&gt;
The name that isn't getting found is different but&lt;br /&gt;
otherwise the behavior is the same.&lt;/p&gt;
&lt;p&gt;Package setup.cfg modified to point library_dirs at&lt;br /&gt;
/usr/lib and include_dirs at /usr/include and a&lt;br /&gt;
directory into which I copied sasl.h and prop.h&lt;br /&gt;
(included by sasl.h) from a recent Symas CDS source&lt;br /&gt;
tree as I couldn't find any sasl.h on the Mac. The&lt;br /&gt;
"python setup.py build" and "sudo python setup.py&lt;br /&gt;
install" both ran without visible errors (except for&lt;br /&gt;
the failure to find python.py etc. mentioned inthe FAQs).&lt;/p&gt;
&lt;p&gt;start python and attempt "import ldap" and get a&lt;br /&gt;
failure to bind to the dynamic libraries. Session&lt;br /&gt;
quoted below.&lt;/p&gt;
&lt;p&gt;===BEGIN terminal session output&lt;br /&gt;
Marty-Heymans-Computer:~/Desktop/python-ldap-2.0.7&lt;br /&gt;
martyheyman$ python&lt;br /&gt;
Python 2.3.5 (#1, Mar 20 2005, 20:38:20) &lt;br /&gt;
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on&lt;br /&gt;
darwin&lt;br /&gt;
Type "help", "copyright", "credits" or "license" for&lt;br /&gt;
more information.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import ldap&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "&amp;lt;stdin&amp;gt;", line 1, in ?&lt;br /&gt;
File&lt;br /&gt;
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/ldap/__init__.py",&lt;br /&gt;
line 21, in ?&lt;br /&gt;
from _ldap import *&lt;br /&gt;
ImportError:&lt;br /&gt;
dlopen(/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/_ldap.so,&lt;br /&gt;
2): Symbol not found: _ldap_str2attributetype&lt;br /&gt;
Referenced from:&lt;br /&gt;
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/_ldap.so&lt;br /&gt;
Expected in: dynamic lookup&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt; &lt;br /&gt;
===END terminal session output&lt;/p&gt;
&lt;p&gt;The logs of the build and install are attached&lt;br /&gt;
including the lines quoted above.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ldif.LDIFRecordList and ldif.LDIFParser</title><link href="https://sourceforge.net/p/python-ldap/support-requests/9/" rel="alternate"/><published>2004-10-29T10:53:56Z</published><updated>2004-10-29T10:53:56Z</updated><author><name>Liam Dasey</name><uri>https://sourceforge.net/u/ldasey/</uri></author><id>https://sourceforge.netd889cca4d2bd54c5c49fd2837093117f1d15aee9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am having difficulties using the ldif module. I can write &lt;br /&gt;
an ldif file OK, but not read ....&lt;/p&gt;
&lt;p&gt;I have an ldif file ....&lt;/p&gt;
&lt;p&gt;dn: uid=srobinson,ou=Staff,dc=myco,dc=org&lt;br /&gt;
objectClass: inetOrgPerson&lt;br /&gt;
uid: srobinson&lt;br /&gt;
givenName: Suzanne&lt;br /&gt;
sn: Robinson&lt;br /&gt;
cn: Suzanne Robinson&lt;br /&gt;
telephoneNumber: 4931&lt;/p&gt;
&lt;p&gt;I have a python script ...&lt;/p&gt;
&lt;p&gt;import ldif&lt;br /&gt;
f = open("f.ldiff","r")&lt;br /&gt;
records = ldif.LDIFRecordList(f)&lt;br /&gt;
data = records.parse() &lt;br /&gt;
print data&lt;/p&gt;
&lt;p&gt;I run the script and I get ...&lt;/p&gt;
&lt;p&gt;None.&lt;/p&gt;
&lt;p&gt;It does seem to read the file, as if I add f.readlines() to &lt;br /&gt;
the end I get ...&lt;/p&gt;
&lt;p&gt;''&lt;/p&gt;
&lt;p&gt;If I open the file and then use f.readlines() it prints the &lt;br /&gt;
whole file OK.&lt;/p&gt;
&lt;p&gt;My directory will have around 5000 entries and from &lt;br /&gt;
other posts I don't think this method would be too &lt;br /&gt;
suitable, but I can't make sense of the available docs &lt;br /&gt;
for LDIFParser (and I am not a fantastic python &lt;br /&gt;
programmer - improving). There doesn't seem to be &lt;br /&gt;
terrific docs or resources / HOWTO's for python-ldap, so &lt;br /&gt;
if anyone can direct me to a good source I would &lt;br /&gt;
appreciate it. Sample code to read a large LDIF and &lt;br /&gt;
write to a LDAP would be great! I could manage if the &lt;br /&gt;
above produced any results, but I don't think &lt;br /&gt;
LDIFRecordList is the way to do it for a largeLDIF&lt;/p&gt;
&lt;p&gt;Liam&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Can't run python-ldap scripts</title><link href="https://sourceforge.net/p/python-ldap/support-requests/8/" rel="alternate"/><published>2004-10-05T17:34:12Z</published><updated>2004-10-05T17:34:12Z</updated><author><name>Liam Dasey</name><uri>https://sourceforge.net/u/ldasey/</uri></author><id>https://sourceforge.net6d855aedb28f8eed292a7e1808c41e6e8c9d55fb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have installed python-ldap on 2 fedora base2 &lt;br /&gt;
machines. One I have compiled, the other was an rpm, &lt;br /&gt;
but I get exactly the same problem on both machines ....&lt;/p&gt;
&lt;p&gt;If I run python interactivly it seems to work ....&lt;/p&gt;
&lt;p&gt;[root@lons tmp2]# python &lt;br /&gt;
Python 2.3.3 (#1, Oct  5 2004, 12:06:56) &lt;br /&gt;
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2&lt;br /&gt;
Type "help", "copyright", "credits" or "license" for more &lt;br /&gt;
information.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import ldap&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; server = "127.0.0.1"&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; l = ldap.open(server)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; who = "cn=Administrator,dc=expotel,dc=org"&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; cred = "linuxldap"&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; l.simple_bind_s(who, cred)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; base = "ou=Staff,dc=expotel,dc=org"&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; scope = ldap.SCOPE_SUBTREE&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; filter = "cn=*Liam*"&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; ra = None&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; result_id = l.search(base, scope, filter, ra)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; timeout = 0&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; r_type, r_data = l.result(result_id, timeout)&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; print r_data&lt;br /&gt;
[('uid=bstevens,ou=Staff,ou=MasterUsers .....&lt;br /&gt;
.... and lots more.&lt;/p&gt;
&lt;p&gt;But. If I put the same into a script and run it I get ...&lt;/p&gt;
&lt;p&gt;[root@lons tmp2]# python ../ldap.py&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "../ldap.py", line 1, in ?&lt;br /&gt;
import ldap&lt;br /&gt;
File "/root/tmp/ldap.py", line 4, in ?&lt;br /&gt;
l = ldap.open(server)&lt;br /&gt;
AttributeError: 'module' object has no attribute 'open'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>