Re: SASL GSSAPI under Win32

2009-08-05 Thread Waldemar Osuch
2009/8/5 Michael Ströder : > Waldemar Osuch wrote: >> I have made a couple attempts to support SASL in the Win32 builds. >> One user even reported a success using it but it never worked for me. >> I will give it one more go but I can not make any promises. > > I tried to bind with SASL DIGEST-MD5 t

Re: SASL GSSAPI under Win32

2009-08-05 Thread Michael Ströder
Waldemar Osuch wrote: > I have made a couple attempts to support SASL in the Win32 builds. > One user even reported a success using it but it never worked for me. > I will give it one more go but I can not make any promises. I tried to bind with SASL DIGEST-MD5 to MS AD W2K3SP2 and to OpenLDAP 2.4

Re: ldap.passwd_s with Active Direcory

2009-08-05 Thread Michael Ströder
mike.pet...@opengi.co.uk wrote: > *** ldaps://ad01.demo.local:636 - SimpleLDAPObject.simple_bind > ((u'u...@addemo', u'secret', None, None),{}) First of all you should not pass Unicode strings to python-ldap. That's not a problem for the actual values you used though in this example but in genera

Re: SASL GSSAPI under Win32 (was: Connection to AD on windows)

2009-08-05 Thread Waldemar Osuch
2009/8/5 Michael Ströder : > Jeroen Michiel wrote: >> > > I'm pretty sure SASL bind with GSSAPI mech is not supported with the Win32 > builds. Therefore I changed the subject line to trigger attention of the > relevant readers. > > The OpenLDAP libs are usually compiled against heimdal or MIT Kerb

RE: ldap.passwd_s with Active Direcory

2009-08-05 Thread Mike.Peters
> -Original Message- > From: Michael Ströder [mailto:mich...@stroeder.com] > Sent: 05 August 2009 16:11 > To: Mike Peters > Cc: python-ldap-dev@lists.sourceforge.net > Subject: Re: ldap.passwd_s with Active Direcory > > mike.pet...@opengi.co.uk wrote: > > Michael Ströder wrote: > >> Did yo

SASL GSSAPI under Win32 (was: Connection to AD on windows)

2009-08-05 Thread Michael Ströder
Jeroen Michiel wrote: > > I'm trying to get python-ldap working on a windows machine to authenticate > users against an Active Directory server. However, I'm getting the weirdest > things... > > This is what I'm trying: > > import ldap, ldap.sasl > > conn = ldap.initialize('ldap://blabla') > co

Re: ldap.passwd_s with Active Direcory

2009-08-05 Thread Russell Jackson
mike.pet...@opengi.co.uk wrote: >> -Original Message- >> From: Michael Ströder [mailto:mich...@stroeder.com] >> Sent: 04 August 2009 18:23 >> To: Mike Peters >> Cc: python-ldap-dev@lists.sourceforge.net >> Subject: Re: ldap.passwd_s with Active Direcory >> >> mike.pet...@opengi.co.uk wrote:

Connection to AD on windows

2009-08-05 Thread Jeroen Michiel
Hi, I'm trying to get python-ldap working on a windows machine to authenticate users against an Active Directory server. However, I'm getting the weirdest things... This is what I'm trying: import ldap, ldap.sasl conn = ldap.initialize('ldap://blabla') conn.set_option(ldap.OPT_PROTOCOL_VERSI

Re: ldap.passwd_s with Active Direcory

2009-08-05 Thread Michael Ströder
mike.pet...@opengi.co.uk wrote: > Michael Ströder wrote: >> Did you search for the MSDN article? The value has to be in your case >> above: >> >> '"password"'.encode('utf-16-le') >> >> Note the quotes and the UTF-16 low-endian encoding. > > Thanks again for your help. I tried that but to no avail.

RE: ldap.passwd_s with Active Direcory

2009-08-05 Thread Mike.Peters
> -Original Message- > From: Michael Ströder [mailto:mich...@stroeder.com] > Sent: 04 August 2009 18:23 > To: Mike Peters > Cc: python-ldap-dev@lists.sourceforge.net > Subject: Re: ldap.passwd_s with Active Direcory > > mike.pet...@opengi.co.uk wrote: > > > >> There's a MSDN article about

Re: How to verify server certificate

2009-08-05 Thread Fredrik Melander
Hi again, > Why should it be broken? It's deliberately broken to test the program, and thanks to your reply I've been able to catch this exception: CONNECT_ERROR: {'info': 'TLS: hostname does not match CN in peer certificate', 'desc': 'Connect error'} What I've so far *not* been able to provoke