1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/auth
Noel Power 3544f1b5d2 s4/auth: 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
..
gensec s4:auth: Add FALL_THROUGH statements in gensec_krb5.c 2018-03-01 04:37:43 +01:00
kerberos libsocket: Add "mem_ctx" to socket_create() 2018-02-27 09:14:17 +01:00
ntlm s4:auth_winbind: make sure we expand group memberships of the local domain 2018-03-19 20:30:51 +01:00
auth.h s4:auth: add authsam_update_user_info_dc() that implements SID expanding for the local domain 2018-03-19 20:30:51 +01:00
pyauth.c s4/auth: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
pyauth.h pytalloc: Use consistent prefix for functions, add ABI file. 2011-08-10 15:36:21 +02:00
sam.c s4:auth: add authsam_update_user_info_dc() that implements SID expanding for the local domain 2018-03-19 20:30:51 +01:00
samba_server_gensec.c s4:auth: use talloc_reparent() in samba_server_gensec_krb5_start() 2017-05-30 08:06:07 +02:00
session.c auth: Add SID_NT_NTLM_AUTHENTICATION / S-1-5-64-10 to the token during NTLM auth 2017-03-27 20:08:18 +02:00
session.h Fix public header not to include private (not installed) ones. 2011-03-14 17:01:20 +01:00
system_session.c s4: auth: Remove a talloc_autofree_context() use. 2017-05-11 20:30:13 +02:00
unix_token.c s4:auth/unix_token: remove unused tevent_context from auth_session_info_fill_unix() 2017-06-26 08:47:15 +02:00
wscript_build wscript_build: make sure we link extra-python versions of libraries 2018-04-13 07:27:11 +02:00
wscript_configure s4:auth/gensec: remove unused and untested cyrus_sasl module 2015-06-23 22:12:08 +02:00