Re: Python LDAP

2011-04-08 Thread Godefroid Chapelle
Le 07/04/11 21:04, Chris Dukes a écrit : > On Thu, Apr 07, 2011 at 07:59:55PM +0200, Godefroid Chapelle wrote: >> Hi, >> >> I am trying to access a Lotus Notes LDAP server. >> >> I got the information from the Notes admin that I should use a Base DN >> that consists of a single space. That feels ve

Re: python-ldap as replication client

2011-03-23 Thread Eric Brunson
On 03/23/2011 01:11 AM, Michael Ströder wrote: > Eric Brunson wrote: >> The new code works great, thanks so much for the new features. >> >> I do have one issue, and maybe I'm just not looking in the correct >> place. The Sync Info Message returns a syncInfoValue which is a BER >> encoded ASN.1 CH

Re: python-ldap as replication client

2011-03-23 Thread Michael Ströder
Eric Brunson wrote: > The new code works great, thanks so much for the new features. > > I do have one issue, and maybe I'm just not looking in the correct > place. The Sync Info Message returns a syncInfoValue which is a BER > encoded ASN.1 CHOICE structure: > > syncInfoValue ::= CHOICE { >

Re: python-ldap as replication client

2011-03-22 Thread Eric Brunson
On 03/11/2011 11:24 AM, Michael Ströder wrote: Eric Brunson wrote: On 03/11/2011 11:00 AM, Michael Ströder wrote: Eric Brunson wrote: On 03/11/2011 05:40 AM, Michael Ströder wrote: No matter which sync protocol you implement it's very likely that you need python-LDAP from CVS HEAD (will be py

Re: python-ldap as replication client

2011-03-11 Thread Michael Ströder
Eric Brunson wrote: > On 03/11/2011 11:00 AM, Michael Ströder wrote: >> Eric Brunson wrote: >>> On 03/11/2011 05:40 AM, Michael Ströder wrote: No matter which sync protocol you implement it's very likely that you need python-LDAP from CVS HEAD (will be python 2.4) since this version

Re: python-ldap as replication client

2011-03-11 Thread Eric Brunson
On 03/11/2011 11:00 AM, Michael Ströder wrote: > Eric Brunson wrote: >> On 03/11/2011 05:40 AM, Michael Ströder wrote: >>> No matter which sync protocol you implement it's very likely that you need >>> python-LDAP from CVS HEAD (will be python 2.4) since this version contains >>> code to extract re

Re: python-ldap as replication client

2011-03-11 Thread Michael Ströder
Eric Brunson wrote: > On 03/11/2011 05:40 AM, Michael Ströder wrote: >> No matter which sync protocol you implement it's very likely that you need >> python-LDAP from CVS HEAD (will be python 2.4) since this version contains >> code to extract response controls from intermediate responses. > > I'm

Re: python-ldap as replication client

2011-03-11 Thread Eric Brunson
On 03/11/2011 05:40 AM, Michael Ströder wrote: > Jeroen van Meeuwen (Kolab Systems) wrote: >> I'm looking to implement LDAP_CONTROL_SYNC(*) capabilities to >> python-ldap's ldap.controls, and while I do have some experience in >> several areas, admittedly compared to you I'm probably the most >> un

Re: python-ldap as replication client

2011-03-11 Thread Jeroen van Meeuwen (Kolab Systems)
Michael Ströder wrote: > Jeroen van Meeuwen (Kolab Systems) wrote: > > I'm looking to implement LDAP_CONTROL_SYNC(*) capabilities to > > python-ldap's ldap.controls, and while I do have some experience in > > several areas, admittedly compared to you I'm probably the most > > under-qualified progra

Re: python-ldap as replication client

2011-03-11 Thread Michael Ströder
Jeroen van Meeuwen (Kolab Systems) wrote: > I'm looking to implement LDAP_CONTROL_SYNC(*) capabilities to > python-ldap's ldap.controls, and while I do have some experience in > several areas, admittedly compared to you I'm probably the most > under-qualified programmer to actually do it. You're a

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-08 Thread Michael Wood
Hi On 7 February 2011 19:29, Rich Megginson wrote: > On 02/05/2011 01:42 PM, Michael Wood wrote: >> >> Hi >> >> On 4 February 2011 17:35, Rich Megginson  wrote: >>> >>> On 02/03/2011 11:59 PM, Michael Wood wrote: On 4 February 2011 08:32, James Andrewartha    wrote: >> >> [...] > >>

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-07 Thread Rich Megginson
On 02/05/2011 01:42 PM, Michael Wood wrote: > Hi > > On 4 February 2011 17:35, Rich Megginson wrote: >> On 02/03/2011 11:59 PM, Michael Wood wrote: >>> On 4 February 2011 08:32, James Andrewarthawrote: > [...] Debian uses GnuTLS because OpenSSL has the non-GPL compatible advertising

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-05 Thread Michael Wood
Hi On 4 February 2011 17:35, Rich Megginson wrote: > On 02/03/2011 11:59 PM, Michael Wood wrote: >> >> On 4 February 2011 08:32, James Andrewartha  wrote: [...] >>> Debian uses GnuTLS because OpenSSL has the non-GPL compatible >>> advertising clause, and libldap is linked into many GPL applicatio

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-04 Thread Rich Megginson
On 02/04/2011 09:15 AM, Michael Ströder wrote: > Rich Megginson wrote: >> OpenLDAP 2.4.23 supports Mozilla NSS (triple licensed >> GPLv2+/LGPLv2+/MPL) for crypto >> Fedora 14 and later use this instead of OpenSSL > I see some benefits using Mozilla NSS especially with LDAP clients. But I > wonder w

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-04 Thread Michael Ströder
Rich Megginson wrote: > OpenLDAP 2.4.23 supports Mozilla NSS (triple licensed > GPLv2+/LGPLv2+/MPL) for crypto > Fedora 14 and later use this instead of OpenSSL I see some benefits using Mozilla NSS especially with LDAP clients. But I wonder whether we could use it from python-ldap via OpenLDAP j

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-04 Thread Michael Ströder
Michael Wood wrote: > I do hold out some hope that issues like this in GnuTLS (or in > the software using GnuTLS?) can get fixed, though. The issues with GnuTLS are known since years now I suspect that everybody setting up a serious (Open-)LDAP deployment just builds with OpenSSL and ther

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-04 Thread Rich Megginson
On 02/03/2011 11:59 PM, Michael Wood wrote: > On 4 February 2011 08:32, James Andrewartha wrote: >> On 04/02/11 03:31, Michael Ströder wrote: >>> Michael Wood wrote: On 3 February 2011 18:16, Rich Megginson wrote: > On 02/03/2011 04:34 AM, Michael Wood wrote: >> e.g. Ubuntu Lucid Lyn

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread Michael Wood
On 4 February 2011 08:32, James Andrewartha wrote: > On 04/02/11 03:31, Michael Ströder wrote: >> Michael Wood wrote: >>> On 3 February 2011 18:16, Rich Megginson wrote: On 02/03/2011 04:34 AM, Michael Wood wrote: > e.g. Ubuntu Lucid Lynx with libldap2-dev version 2.4.21-0ubuntu5.3 and >

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread James Andrewartha
On 04/02/11 03:31, Michael Ströder wrote: > Michael Wood wrote: >> On 3 February 2011 18:16, Rich Megginson wrote: >>> On 02/03/2011 04:34 AM, Michael Wood wrote: e.g. Ubuntu Lucid Lynx with libldap2-dev version 2.4.21-0ubuntu5.3 and python-ldap 2.3.10-1ubuntu1. >> [..] >> But I thought

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread Michael Wood
Hi 2011/2/3 Michael Ströder : > Michael Wood wrote: >> On 3 February 2011 18:16, Rich Megginson wrote: >>> On 02/03/2011 04:34 AM, Michael Wood wrote: e.g. Ubuntu Lucid Lynx with libldap2-dev version 2.4.21-0ubuntu5.3 and python-ldap 2.3.10-1ubuntu1. >> [..] >> But I thought it was wort

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread Michael Ströder
Michael Wood wrote: > On 3 February 2011 18:16, Rich Megginson wrote: >> On 02/03/2011 04:34 AM, Michael Wood wrote: >>> e.g. Ubuntu Lucid Lynx with libldap2-dev version 2.4.21-0ubuntu5.3 and >>> python-ldap 2.3.10-1ubuntu1. > [..] > But I thought it was worth a try to recompile OpenLDAP and link

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread Michael Wood
Hi On 3 February 2011 18:16, Rich Megginson wrote: > On 02/03/2011 04:34 AM, Michael Wood wrote: >> Hi >> >> I'm trying to do a search against Samba 4's LDAP server and it works, >> but the bind and search are both successful, everything hangs when I >> try to unbind from the LDAP server.  If any

Re: python-ldap hanging for 15 minutes under certain conditions

2011-02-03 Thread Rich Megginson
On 02/03/2011 04:34 AM, Michael Wood wrote: > Hi > > I'm trying to do a search against Samba 4's LDAP server and it works, > but the bind and search are both successful, everything hangs when I > try to unbind from the LDAP server. If anyone could enlighten me I > would be grateful. > > I've run i

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: /cvsroot/python-ldap/python-ldap/Modules/

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

2010-08-11 Thread Michael Ströder
Zhang Huangbin wrote: > > 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: > [..] > Modules/constants.c: In function ‘LDAPinit_constants’: > Modules/constants.c

Re: python-ldap and kerberos

2010-03-25 Thread Michael Ströder
Pascal, it seems you're not described to the python-ldap-dev list so your posting was delayed in the list maintainer's queue... Pascal wrote: > I'm on an M$AD and I'm trying python-ldap from a LINUX host with Python 2.6.4. > All is ok, I can search_s after a bind_s. > The problem is the plain tex

Re: python-ldap syncrepl consumer

2009-12-18 Thread Michael Ströder
Mikkel Kruse Johnsen wrote: > Sean did you ever get your python-ldap consumer to work ? I'd also like to know this. But I suspect it's currently not possible due to http://sourceforge.net/tracker/?func=detail&aid=2829057&group_id=2072&atid=352072 > I was searching the net for a way to update othe

Re: Python ldap and syncrepl controls

2009-10-13 Thread Michael Ströder
Sean Burford wrote: > > I've been working on implementing an RFC 4533 syncrepl consumer using > python-ldap. I can't work out why I can't get the SyncDoneControl that > is returned with the LDAP_RES_SEARCH_RESULT through python-ldap. Sean, could you please re-try with current python-ldap CVS HEA

Re: python-ldap on CIFS

2009-10-07 Thread Waldemar Osuch
2009/10/7 phobie : > Michael Ströder wrote: >> Which Win32 build of python-ldap are you using? It seems it requests a >> separate DLL. > > I wrote "main(['python_ldap-2.3.8-py2.6-win32.egg'])" in my first mail. > The pypi exe-installers does not seem to have a silent install option... > If you in

Re: python-ldap on CIFS

2009-10-07 Thread phobie
Michael Ströder wrote: > Which Win32 build of python-ldap are you using? It seems it requests a > separate DLL. I wrote "main(['python_ldap-2.3.8-py2.6-win32.egg'])" in my first mail. Got that file from http://svn.kmrc.de/download/distribution/contrib/python_ldap-2.3.8-py2.6-win32.egg . (The .egg

Re: python-ldap on CIFS

2009-10-07 Thread Michael Ströder
phobie wrote: > Michael Ströder schrieb: >> \\somehost\someshare\python2.6\python.exe -v -c "import ldap" > > File attached! > (converted to utf-8 and translated to english) Which Win32 build of python-ldap are you using? It seems it requests a separate DLL. Ciao, Michael. -

Re: python-ldap on CIFS

2009-10-07 Thread phobie
Michael Ströder schrieb: > \\somehost\someshare\python2.6\python.exe -v -c "import ldap" File attached! (converted to utf-8 and translated to english) > I'm not too familiar with using Python under Windows. I suspect that there > might also be some registry settings for setting the lib path. It

Re: python-ldap on CIFS

2009-10-07 Thread Michael Ströder
phobie wrote: > C:\> \\somehost\someshare\python2.6\python.exe import ldap > Traceback (most recent call last): > File "", line 1, in > File > "\\somehost\someshare\python2.6\lib\site-packages\python_ldap-2.3.8-py2.6-win32.egg\ldap\__init__ > .py", line 22, in > from _ldap import * >

Re: python-ldap, modlist and base64

2009-08-14 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Aug 14, 2009, at 13:24 , Matias Surdi wrote: > Hi! > > I'm wondering if there is any example or documentation on how to add > or modify ldap objects whose values contains non-ascii characters, > such as accents, and so on. As far as I understand,

Re: Python-LDAP for Python 3.0

2009-08-04 Thread Michael Ströder
David, David Leonard wrote: > > I have been looking at how to build the _ldap module for python3.x. I'm glad you're again working on python-ldap! Several months ago I tried to raise a discussion about this: http://www.mail-archive.com/python-ldap-dev@lists.sourceforge.net/msg00394.html > So, h

Re: python-ldap search_s hanging problem on Linux box

2009-06-25 Thread Michael Ströder
Todd Hanson wrote: > I found the resolution!!! If I add the line of code > "con.set_option(ldap.OPT_REFERRALS, 0)" after making the connection > everything runs fine. Why? Search the python-ldap-dev archive. This is a known issue with automatic referral chasing within libldap. Switching it off d

Re: python-ldap search_s hanging problem on Linux box

2009-06-25 Thread Michael Ströder
Tood, please stay on the python-ldap-dev list (Cc:-ed) so others can learn and answer as well. Todd Hanson wrote: > Michael Ströder [mailto:mich...@stroeder.com] wrote: >> Todd Hanson wrote: >>> I have a query that was written in python (2.5) utilizing the >>> python-ldap package (newest stable

Re: python-ldap search_s hanging problem on Linux box

2009-06-24 Thread Michael Ströder
Todd Hanson wrote: > > I have a query that was written in python (2.5) utilizing the > python-ldap package (newest stable version for both Windows and Linux) > to query an Active Directory server for a user’s group membership. The > code works fine on my test machine (2-3 seconds for result) whic

Re: Python-ldap and client-only OpenLDAP

2009-06-03 Thread Guillaume Simard
Thanks a lot for the detailed response. I finally fixed this issue. I thought that library_dirs and include_dirs would search /usr/local/lib and /usr/local/include without having to specify these directories. Have a good day ! 2009/6/2 Michael Ströder > Guillaume Simard wrote: > > > > I want to

Re: Python-ldap and client-only OpenLDAP

2009-06-02 Thread Michael Ströder
Guillaume Simard wrote: > > I want to build OpenLDAP and Python-LDAP from source. > However, I can't install Berkeley DB so I installed Open-LDAP with > > ./configure --disable-slapd --disable-slurpd Yes, that should be sufficient for python-ldap. > I then built and installed Python-LDAP. > >

Re: Python ldap and syncrepl controls

2009-03-17 Thread Sean Burford
Hi, If I switch the control from RefreshPersist(3) to RefreshOnly(1) I get an LDAP_RES_SEARCH_RESULT instead of LDAP_RES_INTERMEDIATE carrying the SyncDoneControl. Strangely enough, the LDAP_RES_SEARCH_RESULT makes it back to my code with an intact control: rtype=101 rdata=[] rmsgid=1 serverctrl

Re: python-ldap wrong auth. after server down

2008-09-26 Thread Michael Ströder
Please don't e-mail me personally. Stay on the mailing list! mete bilgin wrote: > 2008/9/26 Michael Ströder <[EMAIL PROTECTED] > > > > mete bilgin wrote: > > i'm trying to connect ldap into python. when i give it to true > username > > and password, nothi

Re: python-ldap wrong auth. after server down

2008-09-26 Thread Michael Ströder
mete bilgin wrote: > i'm trying to connect ldap into python. when i give it to true username > and password, nothing going wrong...But i try to wrong password ,the > server shutdown...How can i pass that. What does "the server shutdown" mean exactly. Is it stopped? > ps: > ldap_server=ldap.open('

Re: Python-LDAP doesn't like crypt-passwords with 41bit?

2008-07-23 Thread Michael Ströder
[EMAIL PROTECTED] wrote: > > Our passwords in the LDAP server are encrypted with “crypt” and stored > as 41bit binary values. The problem is that python-ldap doesn’t seem to > like 41bit passwords but only 20bit. When I try to authenticate by > Plone-LDAP / python-LDAP, it doesn’t work, cause t

Re: python-ldap question

2008-06-18 Thread Michael Ströder
Melita, I'd kindly ask you to come over to the python-ldap-dev mailing list (See To:, Bcc: to you to protect your e-mail address) to further discuss things like this because others are surely interested in this too. http://lists.sourceforge.net/lists/listinfo/python-ldap-dev Melita Mihaljevic

Re: Python LDAP version availability

2007-11-21 Thread Michael Ströder
Thomas Crawley wrote: > > I need to get my hands on an version 2.2.1 of Python-LDAP. Really 2.2.1? Note that this won't run with Python 2.5 on 64 bit platforms. Make sure that you fully understand all the issues fixed since then by examining file CHANGES thoroughly. CHANGES of CVS HEAD can be fo

Re: Python LDAP version availability

2007-11-20 Thread Matej Vela
"Thomas Crawley" <[EMAIL PROTECTED]> writes: > I need to get my hands on an version 2.2.1 of Python-LDAP. > > I am trying to install Python LDAP and have run into the same problem > which this guy had. > > [1]http://sourceforge.net/mailarchive/forum.php?thread_name=7fc4c9060709131427y4e536238g3fac

Re: Python LDAP

2007-08-11 Thread David Leonard
python-ldap is a bit low level for that. AD is LDAP (and Kerberos) at heart, but there's a lot more to it than just that. python-ldap talks at the LDAP level. This is an outline of what I think you want to do: you'll need to sasl-bind to the AD server, then locate your user's object. Its attr

Re: Python LDAP

2007-08-10 Thread Nicholas Jay Chokas
ok. I was just wondering what function or class I would need to use in the python-ldap module to update a user account's info, to enable it. like with the active_directory module, you can do like username.AccountDisabled() == True username.setInfo() On 8/10/07, Alain Spineux <[EMAIL PROTE

Re: Python LDAP

2007-08-10 Thread Alain Spineux
Hi python-ldap is a ldap client library and then can access any LDAP server, including the not completely compliant M$ active directory. But your problem is not very clear in your question. On 8/10/07, Nicholas Jay Chokas <[EMAIL PROTECTED]> wrote: > Hello, I'm trying to write a script to enab

Re: Python-LDAP for Win32 & Windows 2003 LDAP

2007-08-08 Thread Michael Ströder
Markus Zapke-Gründemann wrote: > Michael Ströder wrote: >> Markus Zapke-Gründemann wrote: >>> Operations error >>> : LdapErr: DSID-0C090627, comment: In order to perform this >>> operation a successful bind must be completed on the connection., >>> data 0, vece >> Then you tried to connect

RE: Python-LDAP for Win32 & Windows 2003 LDAP

2007-08-08 Thread Markus Zapke-Gründemann
Hallo Michael. > -Original Message- > Markus Zapke-Gründemann wrote: > > > > A few days ago I tried the first time a subtree search starting at > > the root of an Active Directory on a Windows 2003 Server. > > This returns no results (if authenticated). So there's no point trying > that.

Re: Python-LDAP for Win32 & Windows 2003 LDAP

2007-08-07 Thread Michael Ströder
Markus Zapke-Gründemann wrote: > > A few days ago I tried the first time a subtree search starting at > the root of an Active Directory on a Windows 2003 Server. This returns no results (if authenticated). So there's no point trying that. You should rather read namingContexts or defaultNamingCont

Re: python-ldap on PyPI (next version)

2007-07-16 Thread Michael Ströder
Hi Torsten, thanks for improving setup.py. Torsten Kurbad wrote: > > after a few modifications, the patch keeps full backward compatibility > to distutils and (hopefully at least ;o) works with Python 2.2 and > Windows. I've tested it (under openSUSE Linux) without setuptools with 2.2 and 2.5 a

Re: python-ldap on PyPI

2007-07-14 Thread Michael Ströder
Torsten Kurbad wrote: > > I just created a first .egg of python-ldap. Thanks for contributing this. > Using a standard Linux distribution, like Gentoo, Hmm, all modifications to setup.py should work on Windows either. > 1. If not already done so, follow the instructions at > http://peak.teleco

Re: python-ldap on PyPI

2007-07-13 Thread Torsten Kurbad
Hi folks, I just created a first .egg of python-ldap. Using a standard Linux distribution, like Gentoo, this can easily be replayed: 0. Make sure that you have a recent version of openldap, openssl and cyrus-sasl libraries and headers installed. 1. If not already done so, follow the instructions

Re: python-ldap on PyPI

2007-07-05 Thread Timur Izhbulatov
Torsten Kurbad wrote: > Timur Izhbulatov wrote: >> Hi guys, >> >> Any progress with python-ldap.egg? If nobody's working on this I'll >> have to make it myself because I need it too. >> >> Cheers, > Hi Timur, > > yes, me and my colleagues will prepare sth. during the next couple of > days. My boss

Re: python-ldap on PyPI

2007-07-05 Thread Timur Izhbulatov
Michael Ströder wrote: > Torsten Kurbad wrote: >> I'm currently involved in a project, using Zope3, there we would need a >> proper python-ldap.egg from the Python Cheeseshop. I realized that >> someone checked in some specs there >> (http://www.python.org/pypi/python-ldap/2.0.11), but there's no .

Re: python-ldap on PyPI

2007-06-29 Thread Michael Ströder
Torsten Kurbad wrote: > > I'm currently involved in a project, using Zope3, there we would need a > proper python-ldap.egg from the Python Cheeseshop. I realized that > someone checked in some specs there > (http://www.python.org/pypi/python-ldap/2.0.11), but there's no .egg > file attached to thi