summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2002-12-27 23:03:22 +0000
committerShirish Kalele <kalele@samba.org>2002-12-27 23:03:22 +0000
commit6b7f50594b56a1357b1c95a974e4750d7390cc17 (patch)
treee6d397a22c6a86f18107d4c6818c43f5fc8e668e
parent8701eb8db2ba534f5666c1b1187200d143f0c3bc (diff)
downloadsamba-6b7f50594b56a1357b1c95a974e4750d7390cc17.tar.gz
samba-6b7f50594b56a1357b1c95a974e4750d7390cc17.tar.bz2
samba-6b7f50594b56a1357b1c95a974e4750d7390cc17.zip
Add check to prevent non-Dfs clients from connecting to an msdfs proxy.
(This used to be commit 2a665ab60a07fd64665cb791e6616479f3239cbb)
-rw-r--r--source3/smbd/service.c7
1 files changed, 7 insertions, 0 deletions
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,