pysmbd: add session_info arg to get_conn_tos
authorJoe Guo <joeg@catalyst.net.nz>
Tue, 3 Jul 2018 22:05:50 +0000 (10:05 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Jul 2018 02:31:59 +0000 (04:31 +0200)
commit760e36ddbcb8543f99fd34d97e8b6851dd022c1f
tree28148280625b298d283e387ab5b60d7591acd0f8
parent356f39534036064a5aef49c524b6395469f7098f
pysmbd: add session_info arg to get_conn_tos

Add session_info arg, so caller can pass it in to reuse authentication info
later. This will improve performance a lot while doing ntacl operations
on large amount of files, e.g.: sysvolreset.

Modification for upstream caller will come in following patches.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13521

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/smbd/pysmbd.c