[PATCH] Port of dsdb, dsdb_dns and samdb Python modules
douglas.bagnall at catalyst.net.nz
Fri Feb 9 19:35:19 UTC 2018
On 10/02/18 08:26, Andrew Bartlett wrote:
> For those preparing the final patch, just remember that the goal is to
> have UTF-16-LE " (double-quote) chars around the UTF-16-LE password in
> the actual LDAP attribute being set.
> that is, presumably, untested:
> + if not PY3 and isinstance(password, str):
> + password = unicode(password, 'utf-8')
> + pw = (u'"%s"' % password).encode('utf-16-le')
Oh, yeah, that is what I *meant* to say.
More information about the samba-technical