From ab42271cd6d17b09409d5c8e5a2c80cf5ae4c1cf Mon Sep 17 00:00:00 2001 From: Shirish Kalele Date: Sun, 29 Dec 2002 23:29:08 +0000 Subject: Add msdfs proxy functionality to HEAD. (This used to be commit 9df93b1ffc9ce98302540cc3d2cbd66787abc4fd) --- source3/smbd/service.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/service.c b/source3/smbd/service.c index 1f168dd3ff..d00c908a1a 100644 --- a/source3/smbd/service.c +++ b/source3/smbd/service.c @@ -833,6 +833,13 @@ connection_struct *make_connection(const char *service_in, DATA_BLOB password, return NULL; } + /* Handle non-Dfs clients attempting connections to msdfs proxy */ + if (lp_host_msdfs() && (*lp_msdfs_proxy(snum) != '\0')) { + DEBUG(3, ("refusing connection to dfs proxy '%s'\n", service)); + *status = NT_STATUS_BAD_NETWORK_NAME; + return NULL; + } + DEBUG(5, ("making a connection to 'normal' service %s\n", service)); return make_connection_snum(snum, vuser, -- cgit