title: use python to create compatible ldap password (md5crypt) on windows
body: <p>Do you know how to create a ldap compatible password (preferred md5crypt) via python on Windows</p>
  
  <p>I used to write something like this in Linux but the crypt module is not present on Windows </p>
  
  <pre><code>char_set = string.ascii_uppercase + string.digits
  salt = ''.join(random.sample(char_set,8))
  salt = '$1$' + salt + '$'
  pwd = "{CRYPT}" + crypt.crypt(str(old_password),salt)
  </code></pre>