s3:utils: let smbstatus report anonymous signing/encryption explicitly
[samba.git] / source3 / modules / vfs_dfs_samba4.c
index 1c7b50e99c6441d0c93b8776fe8b9b5566a25174..8b4724f7b6bd59ada17da20c2d838f6dbe4c477d 100644 (file)
@@ -1,7 +1,5 @@
 /*
- * VFS module to alter the algorithm to calculate
- * the struct file_id used as key for the share mode
- * and byte range locking db's.
+ * VFS module to retrieve DFS referrals from AD
  *
  * Copyright (C) 2007, Stefan Metzmacher
  *
@@ -97,8 +95,11 @@ static int dfs_samba4_connect(struct vfs_handle_struct *handle,
 
 static void dfs_samba4_disconnect(struct vfs_handle_struct *handle)
 {
+       const struct loadparm_substitution *lp_sub =
+               loadparm_s3_global_substitution();
+
        DEBUG(10,("dfs_samba4_disconnect() connect to service[%s].\n",
-                 lp_servicename(talloc_tos(), SNUM(handle->conn))));
+                 lp_servicename(talloc_tos(), lp_sub, SNUM(handle->conn))));
 
        SMB_VFS_NEXT_DISCONNECT(handle);
 }