[PATCH] Port of dsdb, dsdb_dns and samdb Python modules

Andrew Bartlett abartlet at samba.org
Wed Feb 7 22:31:11 UTC 2018


On Tue, 2018-01-30 at 19:35 +0100, Lumir Balhar via samba-technical
wrote:
> Hello.
> 
> Thanks for big help from Andreas and Alexander I can deliver other 
> patches with ported Python modules.
> 
> My patchset contains ported dsdb, dsdb_dns and samdb modules. The 
> modules are highly connected and cannot work without each other. That is 
> probably a reason why there are no tests for samdb itself but samdb is 
> widely used in dsdb and dsdb has good testsuite.
> 
> Let me know if there is something wrong.
> 
> Thank you and have a nice day.

In: 

python: Port samdb module to Python 3 compatible form

This still has: 

+            print(password, PY3)

and is there really no common way of doing this?

+            if PY3:
+                pw = str('"' + password + '"').encode('utf-16-le')
+            else:
+                pw = unicode('"' + password.encode('utf-8') + '"',
'utf-8').encode('utf-16-le')

Thanks,

Andrew Bartlett 

-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba







More information about the samba-technical mailing list