1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source4
Noel Power ba5f00deb7 s4/param: 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 s4/auth: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
build/pasn1
cldap_server s4:cldap_server: Fix size types 2018-03-20 23:16:15 +01:00
client s4:client: Fix size types and loop 2018-04-03 20:20:10 +02:00
cluster dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
dns_server s4:dns_server: Fix size types 2018-03-20 23:16:15 +01:00
dsdb s4/dsdb: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
echo_server source4/smbd: Do not overstamp the process model with "single" 2017-10-19 05:33:10 +02:00
heimdal heimdal: Fix size types and array access 2018-04-03 20:20:10 +02:00
heimdal_build heimdal_build: use closefrom from libreplace 2018-02-21 14:19:19 +01:00
include lib: Remove global xfile.h includes 2016-11-20 06:23:19 +01:00
kdc s4:kdc: make sure we expand group memberships of the local domain 2018-03-19 20:30:52 +01:00
ldap_server s4:ldap_server: Fix size types 2018-03-20 23:16:15 +01:00
lib s4/lib/py-registry: initialize optional parameters for open_* functions 2018-04-13 07:27:14 +02:00
libcli tevent: Fix callers of tevent_req_set_endtime 2018-04-24 19:41:15 +02:00
libnet s3/libnet/wscript: build samba-net lib for extra-python/py3 2018-04-13 07:27:11 +02:00
librpc s4/librpc: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
nbt_server nbt_server: Align integer types 2018-04-18 00:11:51 +02:00
ntp_signd source4/smbd: Do not overstamp the process model with "single" 2017-10-19 05:33:10 +02:00
ntvfs s4/ntvfs/posix/python: python3 (get|set)xattr value should be bytes 2018-04-05 08:59:09 +02:00
param s4/param: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
rpc_server dnsrpc: Use TALLOC_FREE instead of an explicit if-statement 2018-04-11 19:07:24 +02:00
script s4/script: convert print func to be py2/py3 compatible 2018-03-23 07:28:24 +01:00
scripting python: bulk replace dict.itervalues to values for py3 2018-04-13 07:27:12 +02:00
selftest selftest: enable py3 for samba.tests.krb5_credentials 2018-04-13 07:27:13 +02:00
setup provision: allow provisioning of a different database backend 2018-04-06 02:08:45 +02:00
smb_server Remove dead code 2018-03-19 20:29:28 +01:00
smbd s4/smbd/server.c: create /run if missing 2018-04-25 19:59:13 +02:00
torture torture: Test compound request request counters 2018-04-12 14:38:39 +02:00
utils s4:utils: Fix size types 2018-03-20 23:16:15 +01:00
web_server s4/webserver: initialise optional parameter 2018-04-13 07:27:14 +02:00
winbind Remove dead code 2018-03-19 20:29:28 +01:00
wrepl_server source4/smbd: Do not overstamp the process model with "single" 2017-10-19 05:33:10 +02:00
.clang_complete
.valgrind_suppressions
wscript_build Do not install smbclient4 and nmblookup4 2014-04-15 03:25:13 +02:00