diff options
author | Shirish Kalele <kalele@samba.org> | 2002-12-27 23:03:22 +0000 |
---|---|---|
committer | Shirish Kalele <kalele@samba.org> | 2002-12-27 23:03:22 +0000 |
commit | 2a665ab60a07fd64665cb791e6616479f3239cbb (patch) | |
tree | bc8625fb2857315cce68f78404ca78c4c2245fc6 | |
parent | 514f548b183b73e1970989d47fb9e6a87e440748 (diff) | |
download | samba-2a665ab60a07fd64665cb791e6616479f3239cbb.tar.gz samba-2a665ab60a07fd64665cb791e6616479f3239cbb.tar.xz samba-2a665ab60a07fd64665cb791e6616479f3239cbb.zip |
Add check to prevent non-Dfs clients from connecting to an msdfs proxy.
-rw-r--r-- | source/smbd/service.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c index 1f168dd3fff..d00c908a1a9 100644 --- a/source/smbd/service.c +++ b/source/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, |