Re: Minimum version of OpenLDAP libs for python-ldap 2.4.x?

2011-03-04 Thread Zhang Huangbin
On Mar 5, 2011, at 2:45 AM, Michael Ströder wrote: Again it's time to think about the minimum required version of OpenLDAP libs to be used for building upcoming python-ldap 2.4.0. Does it mean py-ldap-2.4.0 won't support OpenLDAP-2.3.x series? Debian 5, RHEL/CentOS 5 ships OpenLDAP-2.3.x. I

Can't install python-ldap from pypi.python.org

2010-10-27 Thread Zhang Huangbin
Hi, developers. I can't install python-ldap from pypi.python.org, will you consider fixing it? First of all, there's a compile issue with py-ldap-2.3.12 on RHEL/CentOS 5.x: http://marc.info/?t=12815231342r=1w=2 Old versions are not available: #-- # easy_install python-ldap==2.3.11

Re: python-ldap-2.3.12: Compile error on CentOS 5.5, i386

2010-08-11 Thread Zhang Huangbin
On Aug 12, 2010, at 2:42 AM, Michael Ströder wrote: Looks like an older OpenLDAP release. Please try the patch below. Ciao, Michael. Index: Modules/constants.c === RCS file:

python-ldap-2.3.12: Compile error on CentOS 5.5, i386

2010-08-10 Thread Zhang Huangbin
On Aug 9, 2010, at 11:43 PM, Michael Ströder wrote: Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.3.12 Compile error on CentOS 5.5, i386: # easy_install python-ldap==2.3.12 Searching for python-ldap==2.3.12 Reading

Re: How can i add a booleanMatch type attribute

2010-01-31 Thread Zhang Huangbin
On Jan 31, 2010, at 10:58 PM, Michael Ströder wrote: Zhang Huangbin wrote: How can i add a booleanMatch type attribute with py-ldap? Simply like any other attribute provided your attribute value is TRUE or FALSE. Successed with modlist: ('amavisLocal', ['TRUE']), Thanks :) -- Best

Re: What's the best way to replace value of attribute which can handle multiple values?

2009-09-09 Thread Zhang Huangbin
On Sep 9, 2009, at 1:32 PM, Zhang Huangbin wrote: I want to replace cn=cn2 by cn=cn4 if it exist, or add cn=cn4 directly if 'cn=cn2' donesn't exist. If cn=cn2 is not exist, [(ldap.MOD_DELETE, 'cn', 'cn2')] will raise an error. If cn=cn2 is not exist, [(ldap.MOD_ADD, 'cn', 'cn4

Re: What's the best way to replace value of attribute which can handle multiple values?

2009-09-09 Thread Zhang Huangbin
:) -- Best Regards. Zhang Huangbin - Open Source Mail Server Solution for Red Hat(R) Enterprise Linux, CentOS, Debian, Ubuntu: http://www.iredmail.org/ -- Let Crystal Reports handle the reporting - Free Crystal Reports

Re: What's the best way to replace value of attribute which can handle multiple values?

2009-09-09 Thread Zhang Huangbin
On Sep 9, 2009, at 6:02 PM, Michael Ströder wrote: Zhang Huangbin wrote: On Sep 9, 2009, at 4:54 PM, Michael Ströder wrote: If cn=cn2 is not exist, [(ldap.MOD_DELETE, 'cn', 'cn2')] will raise an error. Could you please post the error raised and mention with which server you're testing

What's the best way to replace value of attribute which can handle multiple values?

2009-09-08 Thread Zhang Huangbin
Regards. Zhang Huangbin - Open Source Mail Server Solution for Red Hat(R) Enterprise Linux, CentOS, Debian, Ubuntu: http://www.iredmail.org/ -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day

Typo error in Demo/Lib/ldap/async/deltree.py (2.3.9)

2009-07-31 Thread Zhang Huangbin
Hi, developers. There's an incorrect module name in Demo/Lib/ldap/async/deltree.py, it seems 'ldap.async.SearchHandler' should be replaced by 'ldap.async.AsyncSearchHandler'. python-ldap version: 2.3.9. Thanks for your hard work :) -- Best Regards. Zhang Huangbin - Open Source Mail

Any example of Server/Client Side Sorting?

2009-05-14 Thread Zhang Huangbin
, OpenLDAP-2.4.15-1ubuntu3. -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL, CentOS, Debian: http://code.google.com/p/iredmail/ -- The NEW KODAK i700 Series Scanners deliver under ANY circumstances

Re: ANN: python-ldap-2.3.8

2009-04-30 Thread Zhang Huangbin
Michael Ströder wrote: Find a new release of python-ldap: http://www.python-ldap.org/ Thanks for your great work, Michael. ^_^ -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail

Re: Limited the usage of SF services for python-ldap

2009-04-09 Thread Zhang Huangbin
on that to come. Ciao, Michael. Try google code project hosting? http://code.google.com/ -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-18 Thread Zhang Huangbin
Michael Ströder wrote: Aargh! My fault. Thanks David. Modules/ldapcontrol.c in CVS HEAD should work now. Tested and it *WORKS* now, Thanks David Michael. :) -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Zhang Huangbin
1 ldap_send_unbind ldap_free_connection: actually freed -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/ -- Apps built with the Adobe(R

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Zhang Huangbin
Michael Ströder wrote: Thanks to Zhang Huangbin for giving me access to his machine for testing. So I could track it down. It seems to work with the patch below which I committed to CVS HEAD. Hi, Michael. Thanks for your quick response and hard work :) But i got new error (ldap.NO_MEMORY

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Zhang Huangbin
great, it works now. Big thanks, Michael. :) -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/ -- Apps built with the Adobe(R) Flex(R) framework

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-16 Thread Zhang Huangbin
or self.decodeControlValue(encodedControlValue) File /usr/lib64/python2.4/site-packages/ldap/controls.py, line 81, in decodeControlValue size,cookie = _ldap.decode_page_control(encodedValue) ldap.NO_MEMORY But i don't have a public RHEL 5.3 x86_64 server. :( -- Best regards. Zhang Huangbin - Open Source

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-15 Thread Zhang Huangbin
(shipped within RHEL 5.3) python-ldap: 2.3.6 (installed from source tarball) OpenLDAP: 2.3.43-3.el5 (shipped within RHEL 5.3) How can i solve it? -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-15 Thread Zhang Huangbin
Strange, the same code (Demo/page_control.py) works in: - OS: CentOS 5.2, *i386* - Python: 2.4.3-21.el5 (shipped within CentOS) - python-ldap: 2.3.6 (installed from source tarball) - OpenLDAP: 2.3.27-8.el5_2.4 -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-15 Thread Zhang Huangbin
Zhang Huangbin wrote: Strange, the same code (Demo/page_control.py) works in: - OS: CentOS 5.2, *i386* - Python: 2.4.3-21.el5 (shipped within CentOS) - python-ldap: 2.3.6 (installed from source tarball) - OpenLDAP: 2.3.27-8.el5_2.4 How can i help developers fix this possible bug? Please