summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2000-04-28 18:36:47 +0000
committerShirish Kalele <kalele@samba.org>2000-04-28 18:36:47 +0000
commitb39cee0bb9de856f8e4fa1f8a227ff885a5c56ff (patch)
treea0328a42ebfc34914a5417d7ac98e7617e325794 /source3/rpc_server
parentea9b2ed326caba0f7dfa514167bb6f89bc852a18 (diff)
downloadsamba-b39cee0bb9de856f8e4fa1f8a227ff885a5c56ff.tar.gz
samba-b39cee0bb9de856f8e4fa1f8a227ff885a5c56ff.tar.bz2
samba-b39cee0bb9de856f8e4fa1f8a227ff885a5c56ff.zip
Added info level 1005 to netsharegetinfo (is the share a DFS root)
Added dfs_server announcement in set_default_server_announce_type() (This used to be commit 99d07e13520b04d99999938d259d56fa65c8a8ea)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_srvsvc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_srvsvc.c b/source3/rpc_server/srv_srvsvc.c
index 51ba7e8a8f..bb2083e28a 100644
--- a/source3/rpc_server/srv_srvsvc.c
+++ b/source3/rpc_server/srv_srvsvc.c
@@ -90,6 +90,20 @@ static void init_srv_share_info_2(SRV_SHARE_INFO_2 *sh2, int snum)
init_srv_share_info2_str(&sh2->info_2_str, net_name, remark, path, passwd);
}
+/***************************************************************************
+ Fill in a share info level 1005 structure.
+ ***************************************************************************/
+static void init_srv_share_info_1005(SRV_SHARE_INFO_1005* sh1005, int snum)
+{
+ sh1005->dfs_root_flag = 0;
+
+#ifdef MS_DFS
+ if(lp_host_msdfs() && *lp_dfsmap(snum) && lp_dfsmap_loaded(snum))
+ sh1005->dfs_root_flag = 3;
+#endif
+
+}
+
/*******************************************************************
Fill in a share info structure.
********************************************************************/
@@ -235,6 +249,9 @@ static void init_srv_r_net_share_get_info(SRV_R_NET_SHARE_GET_INFO *r_n,
case 2:
init_srv_share_info_2(&r_n->share.info2, snum);
break;
+ case 1005:
+ init_srv_share_info_1005(&r_n->share.info1005, snum);
+ break;
default:
DEBUG(5,("init_srv_net_share_get_info: unsupported switch value %d\n", info_level));
status = 0xC0000000 | NT_STATUS_INVALID_INFO_CLASS;