summaryrefslogtreecommitdiff
path: root/source/modules/vfs_expand_msdfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/vfs_expand_msdfs.c')
-rw-r--r--source/modules/vfs_expand_msdfs.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/modules/vfs_expand_msdfs.c b/source/modules/vfs_expand_msdfs.c
index 0d09d213e1..9d4883c085 100644
--- a/source/modules/vfs_expand_msdfs.c
+++ b/source/modules/vfs_expand_msdfs.c
@@ -22,6 +22,8 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
+extern userdom_struct current_user_info;
+
/**********************************************************
Under mapfile we expect a table of the following format:
@@ -143,11 +145,11 @@ static char *expand_msdfs_target(TALLOC_CTX *ctx,
targethost = talloc_sub_advanced(ctx,
lp_servicename(SNUM(conn)),
- conn->server_info->unix_name,
+ conn->user,
conn->connectpath,
- conn->server_info->utok.gid,
- conn->server_info->sanitized_username,
- pdb_get_domain(conn->server_info->sam_account),
+ conn->gid,
+ get_current_username(),
+ current_user_info.domain,
targethost);
DEBUG(10, ("Expanded targethost to %s\n", targethost));