s3-netapi Add libnetapi_net_init(), don't double-init common Samba subsystems
authorAndrew Bartlett <abartlet@samba.org>
Sun, 21 Nov 2010 09:40:50 +0000 (20:40 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 24 Nov 2010 07:37:04 +0000 (08:37 +0100)
commit88d020ade07bfe5cd7570b8c9b80a162adb39891
treec37d970b1061b74655d19725c754e15c71816a53
parent58920aab0237aaa9f4a81577800bddba97e279a5
s3-netapi Add libnetapi_net_init(), don't double-init common Samba subsystems

The issue here is that libnet and net were both trying to load the
smb.conf files, the case tables and set the debug levels.  The set of
the debug levels caused problems, because it would force the level to
0, not (say) 10 as requested on the command line.

This regression was apparently introduced in
cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb when eliminating
AllowDebugChange.

Andrew Bartlett
source3/lib/netapi/netapi.c
source3/lib/netapi/netapi_net.h [new file with mode: 0644]
source3/lib/netapi/netapi_private.h
source3/utils/net_dom.c
source3/utils/net_rpc.c
source3/utils/net_rpc_shell.c