s3:pylibsmb: Make lp a mandatory param for the SMB connection
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 11 Dec 2018 21:25:35 +0000 (10:25 +1300)
committerTim Beale <timbeale@samba.org>
Mon, 7 Jan 2019 00:23:07 +0000 (01:23 +0100)
commit6fff2c26dacb49da749a4ee8261639f518342573
tree6d58af140f844760bae2c482ba3a7aa8c6af2a1b
parentb7d350b45bc032bf1b61f0184500d068631b7329
s3:pylibsmb: Make lp a mandatory param for the SMB connection

Currently establishing the SMB connection relies on having initialized
the global source3 loadparm.

This patch makes the lp param mandatory, so that you always have to pass
the parameter in when establishing the SMB connection.

It also makes the source3 API more consistent with the current source4
API, which will make it easier to replace the source4 version later.

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

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/dcerpc/raw_testcase.py
python/samba/tests/libsmb_samba_internal.py
source3/libsmb/pylibsmb.c