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. I still get the
> same error.

It should work. It's the way I've implemented it in web2ldap. You must use
either LDAPS or StartTLS ext.op.

You might wanna look what's going on by setting trace_level=2 when calling
ldap.initialize().

> Do you know if the fact I'm accessing the server over a VPN
> would make any difference?

AD enforces that to work solely over an encrypted connection. A VPN is outside
the connection handling of AD so this won't work.

Ciao, Michael.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to