DSML writer

2010-01-29 Thread Adam Tauno Williams
I noticed that python-ldap contains some DSML support;  only the XML
produced is invalid [I believe this is caused by its attempt to create
'pretty' output].  Unable to use the DSML support in python-ldap I wrote
my own DSML writer.  License is MIT/X11.

http://coils.hg.sourceforge.net/hgweb/coils/coils/file/aad88f715c0f/src/coils/logic/workflow/actions/ldap/dsml1_writer.py

This is only meant as an FYI in case someone wants to update the DSML
support in Python-LDAP.

-- 
OpenGroupware developer: awill...@whitemice.org
http://www.whitemiceconsulting.com
OpenGroupare  Cyrus IMAPd documenation @
http://docs.opengroupware.org/Members/whitemice/wmogag/file_view


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: ldap.open() SSL patch

2010-04-19 Thread Adam Tauno Williams
On Mon, 2010-04-19 at 12:12 -0300, ygormu...@dcc.ufba.br wrote:
 Michael Ströder mich...@stroeder.com:
  Just raising DeprecationWarning exception breaks existing code. I have to
  reject your patch. ;-)
 I understand.
  I've checked in a solution which only outputs a warning (just like  
  md5.py does
  in recent Python releases). So old code should still work.
 I agree that this is a better solution for now.
 BTW, python-ldap looks a little bit complicated to use. I wonder if it  
 has other functions just like ldap.open, making the API look more  
 complicated than it actually is. I think it would be nice for  
 python-ldap to have a major release with a simpler API.
 I'll write a smaller API on top of python-ldap to ease the most  
 frequent use cases (simple authentication, searching, etc). If you  
 like the idea, maybe we can work together on it.

As an LDAP admin for more than a decade this is nearly impossible to
do without loosing generality [especially authentication; and I expect
most applications implement an 'authentication' class anyway].

A search is a single method call, which seems pretty simple to me.

Perhaps you should look at the ldaphelper module created by Butcher.
http://aleph-null.tv/article/20080125-1203-175.xml/ldaphelper%
3A-A-Python-Extension-Library-for-python-ldap

It simplifies a few things, at minimal expense.

 PS: Sorry for the bad english.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Installing python-ldap 2.3.12 fails

2010-09-21 Thread Adam Tauno Williams
When I install the most recent python-ldap on my CentOS5 box (which has
Python2.6 from IUS) it fails.  Previously I was able to install
python-ldap on a similarly provisioned host.

gcc-4.1.2-48.el5
openldap-devel-2.3.43-12.el5_5.2
openssl-devel-0.9.8e-12.el5_4.6
python26-devel-2.6.5-3.el5

Searching for python-ldap
Reading http://pypi.python.org/simple/python-ldap/
Reading http://www.python-ldap.org/
Reading http://python-ldap.sourceforge.net/
Reading
http://sourceforge.net/project/showfiles.php?group_id=2072package_id=2011
Best match: python-ldap 2.3.12
Downloading
http://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.3.12.tar.gz#md5=2dadc521b2c2590d9b033894ba5c6f31
Processing python-ldap-2.3.12.tar.gz
Running python-ldap-2.3.12/setup.py -q bdist_egg
--dist-dir /tmp/easy_install-l2DIor/python-ldap-2.3.12/egg-dist-tmp-NfH6yQ
extra_compile_args: 
extra_objects: 
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
Modules/constants.c: In function ‘LDAPinit_constants’:
Modules/constants.c:184: error: ‘LDAP_OPT_X_TLS_CRLFILE’ undeclared
(first use in this function)
Modules/constants.c:184: error: (Each undeclared identifier is reported
only once
Modules/constants.c:184: error: for each function it appears in.)
error: Setup script exited with error: command 'gcc' failed with exit
status 1


-- 
Adam Tauno Williams awill...@whitemice.org LPIC-1, Novell CLA
http://www.whitemiceconsulting.com
OpenGroupware, Cyrus IMAPd, Postfix, OpenLDAP, Samba


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev