pyglue: add generate_random_machine_password() wrapper
authorStefan Metzmacher <metze@samba.org>
Tue, 23 Aug 2016 07:35:50 +0000 (09:35 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 21 Feb 2017 15:09:22 +0000 (16:09 +0100)
commitd7840e77961cdc4ccc4f5549494d458b6b2c2cf4
tree51fb4f0a2efafcbf49f0dbfa8d693ee776f72cf0
parentb86c29b1e6fb2fb4cf203aa38c7764084d855730
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>
python/pyglue.c
python/samba/__init__.py