Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Michael Ströder
Olivier Sessink wrote: >> ld = ldap.initialize('ldap://foobar') >> ld.set_option(ldap.OPT_REFERRALS,0) > > you saved my day! > > it works. Glad that worked. > sorry for my limited knowledge, but what does "referrals should be > automatically chased" mean? Referrals are basically LDAP URLs retu

Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Olivier Sessink
2009/4/10 Michael Ströder : > Olivier Sessink wrote: >> 2009/4/10 Michael Ströder : >>> You can bind with SASL/GSSAPI to AD with plain python-ldap provided you >>> obtained a valid TGT with kinit before (just like with command-line tool >>> ldapsearch). >> >> thanks, that's what I need to know. >>

Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Michael Ströder
Olivier Sessink wrote: > 2009/4/10 Michael Ströder : >> You can bind with SASL/GSSAPI to AD with plain python-ldap provided you >> obtained a valid TGT with kinit before (just like with command-line tool >> ldapsearch). > > thanks, that's what I need to know. > > I can't get it to work though.. >

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

2009-04-10 Thread charlie derr
Michael Ströder wrote: > Zhang Huangbin wrote: >> Try google code project hosting? >> http://code.google.com/ > > Nope! > > I strongly prefer to cooperate with people who are not a big company and > are personally committed to either directly support Python or OpenLDAP. > I won't go for an infras

Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Michael Ströder
Michael Ströder wrote: > Hmm, this should simply work just like the ldapsearch usage. BTW: If you're using MS AD of W2K8 (not W2K3) you can check whether your bound with ld.whoami_s() which on W2K8 returns 'u:DOMAIN\SAMACCOUNTNAME'. Ciao, Michael.

Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Olivier Sessink
2009/4/10 Michael Ströder : > You can bind with SASL/GSSAPI to AD with plain python-ldap provided you > obtained a valid TGT with kinit before (just like with command-line tool > ldapsearch). thanks, that's what I need to know. I can't get it to work though.. ld = ldap.initialize('ldap://foobar'

Re: tarball vs. download URL

2009-04-10 Thread Sidnei da Silva
On Tue, Apr 7, 2009 at 1:28 PM, Jens Vagelpohl wrote: > Personally, I haven't had the need to search for a service that offers > something like SF, including version control and bug tracking. I > either use my own systems, or those used by the Zope developer > community. > > One candidate you coul

ldapsearch vs. python-ldap

2009-04-10 Thread James
Hey, I'm trying to use python-ldap to do something that works with the ldapsearch command line tool. I've posted code samples, can someone point out why the python-ldap fails? What is different about what python-ldap is doing. It seems that it forgets that it just _did_ bind successfully... thanks

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

2009-04-10 Thread Michael Ströder
Zhang Huangbin wrote: > Try google code project hosting? > http://code.google.com/ Nope! I strongly prefer to cooperate with people who are not a big company and are personally committed to either directly support Python or OpenLDAP. I won't go for an infrastructure like SF anymore where download

New python-ldap home page

2009-04-10 Thread Michael Ströder
HI! The web pages of python-ldap were moved to http://www.python-ldap.org/ Ciao, Michael. -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational

Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Michael Ströder
Olivier Sessink wrote: > 2009/4/10 Geert Jansen : >> As a related solution, you could have a look at python-ad [1]. >> Python-AD is built on top of python-ldap and provides lots of >> functionality that you normally need to connect to AD built in. For >> example, service discovery, credential manag

Re: using Kerberos to authenticate to Active Directory from python ldap

2009-04-10 Thread Olivier Sessink
2009/4/10 Geert Jansen : > As a related solution, you could have a look at python-ad [1]. > Python-AD is built on top of python-ldap and provides lots of > functionality that you normally need to connect to AD built in. For > example, service discovery, credential management and multi-domain > func