s3:popt_common: simplify popt_common_credentials handling
authorStefan Metzmacher <metze@samba.org>
Fri, 21 Oct 2016 15:22:03 +0000 (17:22 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Nov 2016 10:00:26 +0000 (11:00 +0100)
commitd6d8893d56d0f7b6be7e9a8c34d454f4933525d5
tree637d50d8291817563ce31dbfc3ccdc8fd5093031
parentd134f57ccf76bf7b09272d3c58a786e7b881934f
s3:popt_common: simplify popt_common_credentials handling

This offers a global 'struct user_auth_info *cmdline_auth_info',
similar to the 'cmdline_credentials' we have in
source4/lib/cmdline/popt_common.c.

And we create that in the POPT_CALLBACK_REASON_PRE stage
and finalize it in the POPT_CALLBACK_REASON_POST stage.

That means much less boring work for the callers
and more freedom to change the user_auth_info internals
in future.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
examples/fuse/smb2mount.c
source3/client/client.c
source3/include/popt_common.h
source3/lib/popt_common.c
source3/rpcclient/rpcclient.c
source3/utils/regedit.c
source3/utils/smbcacls.c
source3/utils/smbcquotas.c
source3/utils/smbtree.c