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://ldap.domain.cu";) > conn.simple_bind_s(

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. > What I am running into with Python

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 Perl recursive se

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 whose values conta

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 environment. Did you check all the links

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

Re: Python LDAP

2008-08-26 Thread Juan
On 26 ago, 13:42, Michael Ströder <[EMAIL PROTECTED]> wrote: > Juan wrote: > >     self.conn = ldap.initialize(self.host, self.port) >  > [..] > > LDAPError: (2, 'No such file or directory') > > You have to pass in a LDAP URI as documented > here:http://python-ldap.sourceforge.net/doc/html/ldap.ht

Re: Python LDAP

2008-08-26 Thread Michael Ströder
Juan wrote: self.conn = ldap.initialize(self.host, self.port) > [..] LDAPError: (2, 'No such file or directory') You have to pass in a LDAP URI as documented here: http://python-ldap.sourceforge.net/doc/html/ldap.html#ldap.initialize Use of compability function ldap.open() is deprecated

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's def

Re: python-ldap - Operations Error

2008-04-24 Thread t . a . adjuster
On Apr 24, 2:02 pm, [EMAIL PROTECTED] wrote: > Not sure if this is an AD thing or just something i needed to do with > our particular server/config. Glad to hear my posting helped somebody. In our case, our domain controller was passing us referrals to the Configuration, ForestDNSZones, and Domai

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 excerpt):

Re: python-ldap - Operations Error

2008-04-24 Thread Michael Ströder
[EMAIL PROTECTED] wrote: import ldap l = ldap.initialize("ldap://server.net";) l.simple_bind(DN, "secret") > 1 ^^^ You probably want to use the synchronous method simple_bind_s() since you want to impersonate on this LDAP connection immediately before doing anything else on th

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

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
hotani wrote: 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. If the user you're binding with has the right in AD to search the whole subtree you can start searching at the do

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-ldap.sourceforge.net/download.shtml > > There I found

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

Re: python-ldap for Python 2.5 on Windows?

2007-06-12 Thread Benedict Verheyen
Waldemar Osuch schreef: > > I have also build it on XP SP2. > > I have wrapped the files from "setup.py build" and all required .dll > using Inno Setup. > Maybe Vista does not like the executable produced by Inno. > > If you still want to try then unzip the following: > http://www.osuch.org/pyt

Re: python-ldap for Python 2.5 on Windows?

2007-06-11 Thread Waldemar Osuch
On Jun 11, 6:42 am, Benedict Verheyen <[EMAIL PROTECTED]> wrote: > 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.

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.googlepages.com/python-ldap-2.3.win32-py2.5.ex

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 if it will work for you >>> >> thanks for the inst

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 for the installation file. > When i in

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 an error stating "The

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 Windows? >> > > I have managed to build it for myself usi

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 MinGW: http://www.osuch.org-a.goog

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/data/cache/300.html Th

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.org/mailman/listinfo/pyt

Re: python-ldap/win32 or python/ldap/win32

2006-11-06 Thread Michael Ströder
rcmn wrote: > i'm running around in circle trying to to use python/ldap/ on > win32(WinXP). Maybe this message sent to the python-ldap-dev mailing list helps. You're welcome to follow up on this list. Ciao, Michael. Original Message Subject: Experimental 2.2.0 Windows Build Dat

Helpful replies (was Re: python-ldap)

2006-02-14 Thread Christos Georgiou
On Tue, 07 Feb 2006 12:36:11 -0500, rumours say that Steve Holden <[EMAIL PROTECTED]> might have written: >[EMAIL PROTECTED] wrote: >> y0! >> >> >> >> tks! >gOOgl3, man > >PS: We tend to speak English here :-) Actually, we tend to speak whatever language the OP's experience suggests. I reme

Re: python-ldap

2006-02-14 Thread Christos Georgiou
On 13 Feb 2006 11:11:05 -0800, rumours say that "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> might have written: >hy... >if you dont know how to help people here... dont say "google it". I never said "google it". I presume you mean this post as a reply to all other posters in this thread, right? An

Re: python-ldap

2006-02-13 Thread [EMAIL PROTECTED]
hy... if you dont know how to help people here... dont say "google it". groups.google was made to help! not to say google it! i really dont not what kind of professional you are to say "google it!" you are smart boy! i think your mom has much pride of you! google it to learn more than say "go

Re: python-ldap

2006-02-13 Thread Christos Georgiou
On 7 Feb 2006 10:02:23 -0800, rumours say that "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> might have written: >_)_ On 7 Feb 2006 10:02:25 -0800, rumours say that "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> might have written: >_)_ You can't beat Steve with a pair of arses, because Steve's hand is phys

Re: python-ldap

2006-02-07 Thread Paul McGuire
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: > > y0! > > where can i get module of python-ldap to work with eclipse ide on > > windows? > > > > tks! > > > gOOgl3, man > > PS: We tend to speak English here :-) > -- > Steve Holden +44 15

Re: python-ldap

2006-02-07 Thread [EMAIL PROTECTED]
_)_ -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap

2006-02-07 Thread [EMAIL PROTECTED]
_)_ -- http://mail.python.org/mailman/listinfo/python-list

Re: python-ldap

2006-02-07 Thread Steve Holden
[EMAIL PROTECTED] wrote: > y0! > where can i get module of python-ldap to work with eclipse ide on > windows? > > tks! > gOOgl3, man PS: We tend to speak English here :-) -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006

Re: Python ldap pointers for a newbie - Actually just trying to decifer the error..

2005-07-18 Thread Michael Ströder
rh0dium wrote: > > ldap_result_id = cnx.search_s(baseDN, searchScope, searchAttrs, retrieveAttrs) You are already using the synchronous search method which indeed return the search results. So this should read: result_data=cnx.search_s(baseDN,searchScope,searchAttrs,retrieveAttrs) > result_typ

Re: Python LDAP Schema Pickle

2005-05-09 Thread hemanth
Why don't you check if ldaptor has implemented a similar functionality? I got the following link while googling: -- http://mail.python.org/mailman/listinfo/python-list