Creating Active Directory Objects

Michael Ströder michael at
Sat Aug 30 10:45:12 CEST 2008

Randy wrote:
> Mike (or anyone else who has successfully changed an Active Directory
> password using python-ldap over SSL),
> I have not found an update in the archives to your last message on
> this subject (below).  Can you perhaps share some Python code showing
> how to add or change the password for an Active Directory user via
> LDAP over SSL?

Recent web2ldap changes unicodePwd in AD. You could set trace_level=2 in 
etc/web2ldap/web2ldapcnf/ to see what's passed to python-ldap.

For the SSL part see Demo/ in python-ldap's source 
distribution. Off course you have to check back with your admin whether 
SSL is enabled in your AD DCs and which CA cert to install on the client 

Ciao, Michael.

More information about the python-ldap mailing list