summaryrefslogtreecommitdiff
path: root/python/samba/__init__.py
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-08-23 09:35:50 +0200
committerRalph Boehme <slow@samba.org>2017-02-21 16:09:22 +0100
commitd7840e77961cdc4ccc4f5549494d458b6b2c2cf4 (patch)
tree51fb4f0a2efafcbf49f0dbfa8d693ee776f72cf0 /python/samba/__init__.py
parentb86c29b1e6fb2fb4cf203aa38c7764084d855730 (diff)
downloadsamba-d7840e77961cdc4ccc4f5549494d458b6b2c2cf4.tar.gz
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>
Diffstat (limited to 'python/samba/__init__.py')
-rw-r--r--python/samba/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/samba/__init__.py b/python/samba/__init__.py
index 5f915318093..19d5e38e896 100644
--- a/python/samba/__init__.py
+++ b/python/samba/__init__.py
@@ -396,6 +396,7 @@ nttime2string = _glue.nttime2string
nttime2unix = _glue.nttime2unix
unix2nttime = _glue.unix2nttime
generate_random_password = _glue.generate_random_password
+generate_random_machine_password = _glue.generate_random_machine_password
strcasecmp_m = _glue.strcasecmp_m
strstr_m = _glue.strstr_m
is_ntvfs_fileserver_built = _glue.is_ntvfs_fileserver_built