1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/libcli
Noel Power 7020af427e libcli/nbt: Additionally accept unicode as string param in Py2
With the changes to make samba python code Py2/Py3 compatible there
now are many instances where string content is decoded.
Decoded string variables in Py2 are returned as the unicode type. Many
Py2 c-module functions that take string arguments only check for the
string type. However now it's quite possibe the content formally passed
as a string argument is now passed as unicode after being decoded,
such arguments are rejected and code can fail subtly. This only affects
places where the type is directly checked e.g. via PyStr_Check etc.
arguments that are parsed by ParseTuple* functions generally already
accept both string and unicode (if 's', 'z', 's*' format specifiers
are used)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2018-04-30 15:43:19 +02:00
..
auth dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
cldap tevent: Fix callers of tevent_req_set_endtime 2018-04-24 19:41:15 +02:00
dns tevent: Fix callers of tevent_req_set_endtime 2018-04-24 19:41:15 +02:00
drsuapi werror: replace WERR_SEC_E_DECRYPT_FAILURE with HRES_SEC_E_DECRYPT_FAILURE 2016-09-28 00:04:35 +02:00
echo s4: torture: Change torture_register_suite() to add a TALLOC_CTX *. 2017-05-05 15:52:11 +02:00
ldap typo: mplementation => implementation 2016-05-06 05:03:16 +02:00
lsarpc libcli/lsarpc: add struct trustAuthInOutBlob; forward declaration 2014-04-02 09:03:42 +02:00
named_pipe_auth named_pipe_auth: Rename client -> remote_client and server -> local_server 2017-03-29 02:37:28 +02:00
nbt libcli/nbt: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
netlogon libcli/netlogon: We need to handle a bug in FreeIPA (at least <= 4.1.2). 2015-01-05 17:01:08 +01:00
registry build: Make util_reg subsystem in libcli/registry a library 2011-05-18 16:12:08 +02:00
samsync libcli: Use "all_zero" where appropriate 2017-01-03 16:04:28 +01:00
security libcli/security: add dom_sid_is_valid_account_domain() 2018-03-19 20:30:52 +01:00
smb tstream: Fix CID 1167981 Unchecked return value 2018-04-16 19:09:56 +02:00
smbreadline lib/smbreadline: detect picky compile issue with readline.h 2017-11-24 01:13:15 +01:00
util python: Make generated modules samba.ntstatus and samba.werror Python 3 compatible. 2017-08-22 17:38:17 +02:00