Re: ldap.passwd_s with Active Direcory

2009-08-06 Thread Michael Ströder
mike.pet...@opengi.co.uk wrote: > No, I'm using a different user. I've tried a couple of different users > including Administrator in case it is user permissions. I've looked at the > MSDN article and can't see anything in there different. Strange enough exactly this works just fine with my web2ld

RE: ldap.passwd_s with Active Direcory

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

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: 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: > > M

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

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

Re: ldap.passwd_s with Active Direcory

2009-08-04 Thread Michael Ströder
mike.pet...@opengi.co.uk wrote: > >> There's a MSDN article about how to set attribute unicodePwd via LDAP >> in AD. > > If I try the alternative method however: > > mod_attrs = [( ldap.MOD_REPLACE, 'unicodePwd', 'password' )] > dn = 'CN=Barney Rubble,OU=Users,DC=mydomain,dc=local' > r = l.modify

RE: ldap.passwd_s with Active Direcory

2009-08-04 Thread Mike.Peters
if I use l.start_tls_s() before simple_bind_s, the login fails although without start_tls_s Wireshark shows the connection to be encrypted. Thanks again Mike Peters > -Original Message- > From: Michael Ströder [mailto:mich...@stroeder.com] > Sent: 04 August 2009 17:29 > T

Re: ldap.passwd_s with Active Direcory

2009-08-04 Thread Michael Ströder
mike.pet...@opengi.co.uk wrote: > > I'm not sure if this is the right place for this query, but I couldn't > find a python-LDAP-Users list. > > I'm trying to modify a user's password on an Windows 2003 Active > directory using passwd_s, however the server is returning the following > error: > >