Doing it Wrong: python-ldap and delete operations using ldifWriter

2017-03-16 Thread chloe . anna . talbot
I want to do (what I thought) would be quite a simple thing. I have an LDAP entry that looks like this(in LDIF format): dn: cn=myorg,ou=teams,ou=groups,o=company,c=us cn: myorg objectClass: top objectClass: CompanyTeams objectClass: groupOfUniqueNames owner: cn=john,ou=people,o=company,c=us uniqu

ANN: python-ldap 2.4.21

2015-09-25 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.21 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.20

2015-07-07 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.20 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.19

2015-01-11 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.19 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.18

2014-10-09 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.18 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.17

2014-09-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.17 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.16

2014-09-10 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.16 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.15

2014-03-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.15 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.14

2014-02-03 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.14 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.13

2013-06-27 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.11 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.11

2013-05-28 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.11 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: authentication with python-ldap

2013-05-25 Thread Dieter Maurer
while in Python 2, you use normally the type "str" for text. "str" means no unicode but encoded text. When the Java-LDAP bridge passes text to the LDAP server, it must encode the text - and maybe, it uses the correct encoding (the one the LDAP server expects). The Python-LDAP bridge

RE: authentication with python-ldap

2013-05-25 Thread Joseph L. Casale
> I have been doing the same thing and I tried to use java for testing the > credentials and they are correct. It works perfectly with java. > I really don´t know what we´re doing wrong. > > > You are accessing a protected operation of the LDAP server > and it (the server) rejects it due to invali

Re: authentication with python-ldap

2013-05-25 Thread Jorge Alberto Diaz Orozco
I have been doing the same thing and I tried to use java for testing the credentials and they are correct. It works perfectly with java. I really don´t know what we´re doing wrong. You are accessing a protected operation of the LDAP server and it (the server) rejects it due to invalid credential

Re: authentication with python-ldap

2013-05-24 Thread dieter
avazqu...@grm.uci.cu writes: > import ldap > conn = ldap.initialize("ldap://ldap.uci.cu";) > conn.protocol_version = ldap.VERSION3 > conn.simple_bind_s( "uid=xxx,dc=uci,dc=cu", "xxx" ) > > Result: > > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.7/dist-pac

authentication with python-ldap

2013-05-23 Thread avazquezr
import ldap conn = ldap.initialize("ldap://ldap.uci.cu";) conn.protocol_version = ldap.VERSION3 conn.simple_bind_s( "uid=xxx,dc=uci,dc=cu", "xxx" ) Result: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 207, in simpl

Re: python ldap bind error

2012-12-22 Thread Michael Ströder
Jorge Alberto Diaz Orozco wrote: > hi there. > I'm working with python ldap and I need to authenticate my user. > this is the code I'm using. > > import ldap > ldap.set_option(ldap.OPT_REFERRALS,0) > ldap.protocol_version = 3 > conn = ldap.initialize("ldap:/

python ldap bind error

2012-12-17 Thread Jorge Alberto Diaz Orozco
hi there. I'm working with python ldap and I need to authenticate my user. this is the code I'm using. import ldap ldap.set_option(ldap.OPT_REFERRALS,0) ldap.protocol_version = 3 conn = ldap.initialize("ldap://ldap.domain.cu";) conn.simple_bind_s("u...@domain.cu"

ANN: python-ldap 2.4.9

2012-03-15 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.8 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.8

2012-02-22 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.8 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.7

2012-01-20 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.5

2011-11-25 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.4

2011-10-28 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.4 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-26 Thread Michael Ströder
for you. > http://web.archive.org/web/20081101060042/http://www.agescibs.org/mauro/ > http://old.zope.org/Members/volkerw/LdapWin32/ Puh, this is really ancient stuff... For Python historians: http://python-ldap.cvs.sourceforge.net/python-ldap/python-ldap/CHANGES?view=markup Ciao, Michael. -- http://ma

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-25 Thread Gilles Lenfant
So many thanks for your valuable help Waldemar, this is exactly what I needed. I have no Windows machine to compile with the source bundle all this, and must install this directly in a production server. I'll keep these precious links and files in a trunk. Many thanks again -- Gilles Lenfant -

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-25 Thread Waldemar Osuch
I did try to build it using my current setup but it failed with some linking errors. Oh well. Google gods were nicer to me. Here is a couple alternative links. Maybe they will work for you. http://web.archive.org/web/20081101060042/http://www.agescibs.org/mauro/ http://old.zope.org/Members/volke

Re: [wanted] python-ldap for Python 2.3 / Win32

2011-10-25 Thread Michael Ströder
Gilles Lenfant wrote: > I have spent a couple of hours asking google, browsing Pypi, SF, and of > course the official www.python-ldap.org site searching for a python-ldap > installer for Python 2.3 on Windows 32 bits. Unsuccessfully :( In theory even recent python-ldap 2.4.3 should s

[wanted] python-ldap for Python 2.3 / Win32

2011-10-25 Thread Gilles Lenfant
Hi, I have spent a couple of hours asking google, browsing Pypi, SF, and of course the official www.python-ldap.org site searching for a python-ldap installer for Python 2.3 on Windows 32 bits. Unsuccessfully :( As I need to add this to an ooold Plone site, it is not easy to upgrade to a

ANN: python-ldap 2.4.3

2011-07-23 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.3 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap 2.4.1

2011-07-05 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.1 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Python Ldap Compiliation Issue

2011-06-29 Thread Lunershot
Hi Everyone, I am having an issue with getting python-ldap to compile in my RHEL enviroment. I am running python 2.7.2 from source, and I have the openldap-devel package installed but still can not get this to work. Here is the output: extra_compile_args: -g extra_objects: include_dirs: /opt

ANN: python-ldap 2.4.0

2011-06-03 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.0 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: Active Directory user creation with python-ldap

2011-04-29 Thread Michael Ströder
Nello wrote: > I need to create an Active Directory user using python-ldap library. So, I > authenticate with an admin account and I use "add_s" to create the user. This is possible. Which version of AD are you working with. > Anyway, by default users are disabled on cr

Active Directory user creation with python-ldap

2011-04-26 Thread Nello
I need to create an Active Directory user using python-ldap library. So, I authenticate with an admin account and I use "add_s" to create the user. Anyway, by default users are disabled on creation, and I can not set userAccountControl to swith off the flag ACCOUNTDISABLE, i.

New mailing list for python-ldap

2011-04-01 Thread Michael Ströder
HI! The old SF mailing list python-ldap-dev was shut down today. I'd be happy to see you on the new mailing list for http://python-ldap.org under the umbrella of python.org. List info here: http://mail.python.org/mailman/listinfo/python-ldap All announcements, discussion and support relat

ANN: python-ldap-2.3.13

2011-02-19 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.3.13 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

ANN: python-ldap-2.3.12

2010-08-09 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.3.12 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: python ldap recursive

2010-07-15 Thread Michael Ströder
tekion wrote: > I know perl Net::LDAP could do a recursive search call to LDAP. I don't know perl's Net::LDAP and therefore I'm not sure what you mean with "recursive search call". Personally I'd associate that with recursively processing LDAP tree structure. >

Re: python ldap recursive

2010-07-13 Thread Steven D'Aprano
On Tue, 13 Jul 2010 18:15:58 -0700, tekion wrote: > Hi, > I know perl Net::LDAP could do a recursive search call to LDAP. What I > am running into with Python LDAP on the search call is that I would l > have to wait for the search to complete to get the result. Where as > with

python ldap recursive

2010-07-13 Thread tekion
Hi, I know perl Net::LDAP could do a recursive search call to LDAP. What I am running into with Python LDAP on the search call is that I would l have to wait for the search to complete to get the result. Where as with Perl recursive search call, I would get the result (not the completed result

ANN: python-ldap-2.3.11

2010-02-26 Thread Michael Ströder
Find a new release of python-ldap: http://www.python-ldap.org/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

ANN: python-ldap-2.3.10

2009-11-01 Thread Michael Ströder
Find a new release of python-ldap: http://www.python-ldap.org/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re: python-ldap and encodings

2009-08-14 Thread Matias
Matias wrote: Hi! I'm using python-ldap to create some entries on my openldap server. The problem is that some of those entries have accented characters and unicode text in general. I'm wondering if there is any example or documentation on how to add or modify ldap objects wh

python-ldap and encodings

2009-08-14 Thread Matias
Hi! I'm using python-ldap to create some entries on my openldap server. The problem is that some of those entries have accented characters and unicode text in general. I'm wondering if there is any example or documentation on how to add or modify ldap objects whose values contains

ANN: python-ldap-2.3.9

2009-07-27 Thread Michael Ströder
Find a new release of python-ldap: http://www.python-ldap.org/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re: python-ldap

2009-07-09 Thread Michael Ströder
Larry kavanagh wrote: > I need a PYTHON-LDAP package. > > I'm trying to install ploneldap and it tells me I need python-ldap > package first .. but I can't find one to match my versions. > > I'm using plone 3.2.2, Python 2.4.4 and Zope 2.10.7 on a Win32 environm

python-ldap

2009-07-09 Thread Larry kavanagh
Hi, I need a PYTHON-LDAP package. I'm trying to install ploneldap and it tells me I need python-ldap package first .. but I can't find one to match my versions. I'm using plone 3.2.2, Python 2.4.4 and Zope 2.10.7 on a Win32 environment. Preferable I'd like an EXE as n

ANN: python-ldap-2.3.8

2009-04-30 Thread Michael Ströder
Find a new release of python-ldap: http://www.python-ldap.org/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

ANN: python-ldap-2.3.7

2009-04-10 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re: python-ldap reading an OU with more than 1000 objects

2008-10-18 Thread Michael Ströder
Erick Perez - Quadrian Enterprises, S.A. wrote: > I have a MS Windows AD domain, and have one OU with more tan 1000 users > objects. When I try to read it, I hit the 1000 limit of AD while returning > objects, so I'm asking for advice as to how to read them. IIRC with MS AD you can circumvent this

python-ldap reading an OU with more than 1000 objects

2008-10-17 Thread Erick Perez - Quadrian Enterprises, S.A.
Hi, I have a MS Windows AD domain, and have one OU with more tan 1000 users objects. When I try to read it, I hit the 1000 limit of AD while returning objects, so I'm asking for advice as to how to read them. Here is my actual code, it is not the cleanest as I am learning python. Suggestions are we

Re: Python LDAP

2008-08-26 Thread Juan
re:http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize > > Use of compability function ldap.open() is deprecated and might vanish > in future versions of python-ldap. > > See also Demo/initialize.py in python-ldap's source distribution. > > Ciao, Michael.

Re: Python LDAP

2008-08-26 Thread Michael Ströder
is deprecated and might vanish in future versions of python-ldap. See also Demo/initialize.py in python-ldap's source distribution. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

Python LDAP

2008-08-26 Thread Juan
Hi I am trying to make a simple Python script using LDAP. The module is imported OK, but when I call the function open or initialize, I get this error: Traceback (most recent call last): File "/home/juan/workspace/amquare/src/nutum/amquare/amquare.py", line 122, in conn.connect() File "/

ANN: python-ldap-2.3.5

2008-07-06 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-18 Thread Jeffrey Froman
or you to > have python-ldap updates still supporting it. For us, it is not important. Should we want or need to update python-ldap on that one machine, we'll update python along with it (and vice versa.) Thank you, Jeffrey -- http://mail.python.org/mailman/listinfo/python-list

Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Jeroen Ruigrok van der Werven
-On [20080616 15:55], Michael Ströder ([EMAIL PROTECTED]) wrote: >I'd like to hear from the Python community whether support for Python >version prior to 2.3 is still needed in python-ldap. Please tell me >which Python version you're using and why it'd be important for y

Who is using python-ldap with Python 1.5.x and 2.0-2.2?

2008-06-16 Thread Michael Ströder
HI! I'd like to hear from the Python community whether support for Python version prior to 2.3 is still needed in python-ldap. Please tell me which Python version you're using and why it'd be important for you to have python-ldap updates still supporting it. BTW: Actual

Re: python-ldap - Operations Error

2008-04-25 Thread Michael Ströder
[EMAIL PROTECTED] wrote: Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ Hmm, maybe I should generally switch off referral chasing in python-ldap forcing applications to enable it if needed overriding libldap&#

Re: python-ldap - Operations Error

2008-04-24 Thread t . a . adjuster
s, and DomainDNSZones partitions of the directory when we were doing SCOPE_SUBTREE scoped searches from the root DN of an AD domain. When python-ldap tried to chase those referrals it did so with an anonymous bind, hence the error. Once we turned off the OPT_REFERRALS option, our only other considerati

Re: python-ldap - Operations Error

2008-04-24 Thread theiviaxx
Thanks for the help guys, it works! I used the ldap.set_option(ldap.OPT_REFERRALS, 0) from http://peeved.org/blog/2007/11/20/ immedialtey after import, then did the initialize trace_level=2 and did the simple_bind_s. I was able to search and get the results. That trace_level thing is nice, i'm su

Re: python-ldap: searching without specifying an OU?

2008-04-24 Thread Michael Ströder
hotani wrote: http://peeved.org/blog/2007/11/20/ BTW: This blog entry claims that LDAP_SERVER_DOMAIN_SCOPE_OID control cannot be used with python-ldap. But support for such simple LDAPv3 extended controls was added to python-ldap way back in 2005. Actually it's easy (relevant code ex

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
. It would raise an exception if an LDAP error was received. So there was a successful bind on the connection, right? Don't know. Since I don't know your DN and AD domain configuation. I've added a new example script ms_ad_bind.py to python-ldap's Demo/ directory i

Re: python-ldap - Operations Error

2008-04-24 Thread Tim Golden
Michael Ströder wrote: Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising: http://tgolden.sc.sabren.com/python/activ

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
Jason Scheirer wrote: On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. Seems more promising: http://tgolden.sc.sabren.com/python/active_directory.html This i

Re: python-ldap - Operations Error

2008-04-23 Thread theiviaxx
Thanks for that last link, i'll try that tomorrow :) As for the tgolden modules, i will use that in a pinch, but it means our server has to be a windows box. just trying to keep this as open as possible :) Thanks again -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap - Operations Error

2008-04-23 Thread Jason Scheirer
On Apr 23, 5:16 pm, [EMAIL PROTECTED] wrote: > Hello all, I am trying to integrate TurboGears with our Active > Directory here at the office.  TurboGears aside, i cannot get this to > work.  The simplest thing i can do to test this is: > > >>> import ldap > >>> l = ldap.initialize("ldap://server.ne

python-ldap - Operations Error

2008-04-23 Thread theiviaxx
Hello all, I am trying to integrate TurboGears with our Active Directory here at the office. TurboGears aside, i cannot get this to work. The simplest thing i can do to test this is: >>> import ldap >>> l = ldap.initialize("ldap://server.net";) >>> l.simple_bind(DN, "secret") 1 >>> l.result(1) (

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: It seems the only way I can bind is by using this format: simple_bind_s('[EMAIL PROTECTED]','password') Believe me: This is not true. If I try using a DN, it fails every time. This will not work: simple_bind_s('cn=user,dc=server,dc=local', 'password') Check the DN you're using

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: This fixed it! http://peeved.org/blog/2007/11/20/ By adding this line after 'import ldap', I was able to search from the root level: ldap.set_option(ldap.OPT_REFERRALS, 0) Uumh, yes. I'm always switching off OpenLDAP client lib's internal referral chasing. But be prepared to a

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread hotani
This fixed it! http://peeved.org/blog/2007/11/20/ By adding this line after 'import ldap', I was able to search from the root level: ldap.set_option(ldap.OPT_REFERRALS, 0) -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread hotani
It seems the only way I can bind is by using this format: simple_bind_s('[EMAIL PROTECTED]','password') If I try using a DN, it fails every time. This will not work: simple_bind_s('cn=user,dc=server,dc=local', 'password') Errors out with "invalid credentials": ldap.INVALID_CREDENTIALS: {'info': '

Re: python-ldap: searching without specifying an OU?

2008-04-23 Thread Michael Ströder
hotani wrote: Thanks for the response. The user I'm connecting as should have full access but I'll double check tomorrow. This is the LDAP error that is returned when I leave out the OU: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind mu

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread hotani
Thanks for the response. The user I'm connecting as should have full access but I'll double check tomorrow. This is the LDAP error that is returned when I leave out the OU: {'info': ': LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed

Re: python-ldap: searching without specifying an OU?

2008-04-22 Thread Michael Ströder
OU. It should work. I'm doing this quite often. When I remove that part, it breaks. What does "it breaks" mean? Any exception raised by python-ldap? Maybe a different search function? Nope. Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

python-ldap: searching without specifying an OU?

2008-04-22 Thread hotani
I am attempting to pull info from an LDAP server (Active Directory), but cannot specify an OU. In other words, I need to search users in all OU's, not a specific one. Here is what works: con = ldap.initialize("ldap://server.local";) con.simple_bind_s('[EMAIL PROTECTED]', pass) result = con.search

ANN: python-ldap-2.3.4

2008-03-29 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

ANN: python-ldap-2.3.2

2008-03-26 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re[2]: python-ldap for plone 3 (python 2.4.4)

2008-02-25 Thread Erol Robaina Cepero
Ok, thanks *** REPLY SEPARATOR *** On 21/02/2008 at 10:59 p.m. Michael Ströder wrote: >Erol Robaina Cepero wrote: >> On 19/02/2008 at 07:12 p.m. Michael Strvder wrote: >> >>> Erol Robaina Cepero wrote: >>>> I need download python-ldap for

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-21 Thread Michael Ströder
Erol Robaina Cepero wrote: > On 19/02/2008 at 07:12 p.m. Michael Ströder wrote: > >> Erol Robaina Cepero wrote: >>> I need download python-ldap for my plone 3.0.5 that use python 2.4.4. >>> >>> Do you know where I can find it? >> http://python-lda

Re[2]: python-ldap for plone 3 (python 2.4.4)

2008-02-21 Thread Erol Robaina Cepero
On 19/02/2008 at 07:12 p.m. Michael Ströder wrote: >Erol Robaina Cepero wrote: >> I need download python-ldap for my plone 3.0.5 that use python 2.4.4. >> >> Do you know where I can find it? > >http://python-ldap.sourceforge.net/download.shtml There I found the versi

Re: python-ldap for plone 3 (python 2.4.4)

2008-02-19 Thread Michael Ströder
Erol Robaina Cepero wrote: > I need download python-ldap for my plone 3.0.5 that use python 2.4.4. > > Do you know where I can find it? http://python-ldap.sourceforge.net/download.shtml Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

python-ldap for plone 3 (python 2.4.4)

2008-02-19 Thread Erol Robaina Cepero
Hi friend!! I need download python-ldap for my plone 3.0.5 that use python 2.4.4. Do you know where I can find it? bye -- http://mail.python.org/mailman/listinfo/python-list

ANN: python-ldap-2.3.1

2007-07-25 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re: python-ldap for Python 2.5 on Windows?

2007-06-12 Thread Benedict Verheyen
ference. You will need regex but you can skip Berkley DB > before you start. > 3. I have compiled openssl too but I have seen ready made libraries > for download. > I do not have link handy at the moment. > 4. The last step would be to run "setup.py build" for python-ldap

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Waldemar Osuch
rt. 3. I have compiled openssl too but I have seen ready made libraries for download. I do not have link handy at the moment. 4. The last step would be to run "setup.py build" for python-ldap. Remove sasl2 from setup.cfg since cyrus-sasl does not seem to be available for MinGW. Se

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Benedict Verheyen
Thorsten Kampe schreef: >> I'm on Vista (boohoo :(), what's your platform? > > XP SP2 Hmmm it thought so. So in my case it would be interesting to know how to build it so i can make a build that works on Vista too. Regards, Benedict -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Thorsten Kampe
* Benedict Verheyen (Mon, 11 Jun 2007 11:32:26 +0200) > Thorsten Kampe schreef: > > * Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200) > >> Waldemar Osuch schreef: > >>> I have managed to build it for myself using MinGW: > >>> http://www.osuch.org-a.g

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Benedict Verheyen
Thorsten Kampe schreef: > * Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200) >> Waldemar Osuch schreef: >>> I have managed to build it for myself using MinGW: >>> http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe >>> >>> See

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Thorsten Kampe
* Benedict Verheyen (Mon, 11 Jun 2007 11:23:59 +0200) > Waldemar Osuch schreef: > > I have managed to build it for myself using MinGW: > > http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe > > > > See if it will work for you > > > thanks

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Benedict Verheyen
Waldemar Osuch schreef: > > I have managed to build it for myself using MinGW: > http://www.osuch.org-a.googlepages.com/python-ldap-2.3.win32-py2.5.exe > > See if it will work for you > > Waldemar Hi Waldemar, thanks for the installation file. When i installed it, i got

Re: python-ldap for Python 2.5 on Windows?

2007-06-09 Thread Michael Ströder
Waldemar Osuch wrote: > On Jun 8, 6:36 am, Benedict Verheyen <[EMAIL PROTECTED]> > wrote: >> Hi, >> >> i found python-ldap for version Python 2.4. >> Is there i place i can find a version for 2.5? >> >> If not, how can i build it myself for Window

Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Waldemar Osuch
On Jun 8, 6:36 am, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > Hi, > > i found python-ldap for version Python 2.4. > Is there i place i can find a version for 2.5? > > If not, how can i build it myself for Windows? > I have managed to build it for myself using

Re: python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Michael Ströder
Benedict Verheyen wrote: > > i found python-ldap for version Python 2.4. > Is there i place i can find a version for 2.5? > > If not, how can i build it myself for Windows? Depending on what you need you might want to dive into OpenLDAP's FAQ: http://www.openldap.org/faq

python-ldap for Python 2.5 on Windows?

2007-06-08 Thread Benedict Verheyen
Hi, i found python-ldap for version Python 2.4. Is there i place i can find a version for 2.5? If not, how can i build it myself for Windows? Thanks, Benedict -- http://mail.python.org/mailman/listinfo/python-list

Re: ldapsearch example in python-ldap?

2006-11-23 Thread Michael Ströder
n,DC=com","secret") r = l.search_s( "CN=ANYCOMPUTER,CN=Computers,DC=mydomain,DC=com", ldap.SCOPE_SUBTREE, # this is the default of ldapsearch "(objectClass=*)" ) But you really should learn more about it by diving into: http://python-ldap.sourceforge.net/doc/python-ldap/ldap-objects.html Ciao, Michael. -- http://mail.python.org/mailman/listinfo/python-list

ldapsearch example in python-ldap?

2006-11-23 Thread Nico Grubert
Hi there, on a linux machine I am running this ldapsearch from the command line: ldapsearch -x -h myldaphost.mydomain.com \ -D "CN=ldapuser,CN=Users,DC=mydomain,DC=com" -w "secret" \ -b "CN=ANYCOMPUTER,CN=Computers,DC=mydomain,DC=com" How can I do this with p

ANN: python-ldap-2.2.1

2006-11-16 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g

Re: python-ldap and Python 2.5

2006-11-16 Thread Michael Ströder
Michael Ströder wrote: > > But this seems to help (tested on my local system): > http://sourceforge.net/tracker/index.php?func=detail&aid=1575329&group_id=2072&atid=102072 Released python-ldap 2.2.1 yesterday which contains this fix. Ciao, Michael. -- http://mail.python

python-ldap and Python 2.5 (was: Python 2.5 Core Dump on Solaris 8)

2006-11-15 Thread Michael Ströder
Martin v. Löwis wrote: > Melissa Evans schrieb: > >>I've modified grappy.py, >>http://www.stacken.kth.se/~mattiasa/projects/grappy/, a postfix policy >>daemon for greylisting. to use LDAP as a backend instead of SQL (with >>python-ldap.) The daemon runs fine w

  1   2   >