diff --git a/source3/modules/vfs_virusfilter_common.h b/source3/modules/vfs_virusfilter_common.h index 463a9d74e9c..24359bf5a3a 100644 --- a/source3/modules/vfs_virusfilter_common.h +++ b/source3/modules/vfs_virusfilter_common.h @@ -39,9 +39,6 @@ #define DBGC_CLASS virusfilter_debug_class extern int virusfilter_debug_class; -/* Samba's global variable */ -extern userdom_struct current_user_info; - #define VIRUSFILTER_VERSION "0.1.5" /* ====================================================================== */ diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index f5ff1989998..3429ecbe5e4 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -85,8 +85,6 @@ bool bLoaded = false; -extern userdom_struct current_user_info; - /* the special value for the include parameter * to be interpreted not as a file name but to * trigger loading of the global smb.conf options diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c index cc92c84cc07..ba169fbbe52 100644 --- a/source3/rpc_server/netlogon/srv_netlog_nt.c +++ b/source3/rpc_server/netlogon/srv_netlog_nt.c @@ -52,8 +52,6 @@ #include "lib/util/util_str_escape.h" #include "source3/lib/substitute.h" -extern userdom_struct current_user_info; - #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_SRV diff --git a/source3/smbd/smb1_message.c b/source3/smbd/smb1_message.c index 7d89cc45158..928be77f854 100644 --- a/source3/smbd/smb1_message.c +++ b/source3/smbd/smb1_message.c @@ -29,8 +29,6 @@ #include "smbprofile.h" #include "source3/lib/substitute.h" -extern userdom_struct current_user_info; - struct msg_state { char *from; char *to; @@ -122,7 +120,7 @@ static void msg_deliver(struct msg_state *state) goto done; } - s = talloc_sub_basic(talloc_tos(), current_user_info.smb_name, + s = talloc_sub_basic(talloc_tos(), get_current_username(), get_current_user_info_domain(), s); if (s == NULL) { goto done;