pyglue: add generate_random_machine_password() wrapper
commit40366fd386b3793451857670109f7c0be7011230
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Aug 2016 07:35:50 +0000 (23 09:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 25 Feb 2017 00:34:33 +0000 (25 01:34 +0100)
treeb63f544d97db4637b358cbc96786f594a9185e92
parent705686ee1310bb305bcf33f6c1e7f7d8f6a52415
pyglue: add generate_random_machine_password() wrapper

We use PyUnicode_FromString() (which is available from 2.6)
because we really have non-ascii strings.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12262

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit d7840e77961cdc4ccc4f5549494d458b6b2c2cf4)
python/pyglue.c
python/samba/__init__.py