diff options
author | Shirish Kalele <kalele@samba.org> | 2002-12-29 23:29:08 +0000 |
---|---|---|
committer | Shirish Kalele <kalele@samba.org> | 2002-12-29 23:29:08 +0000 |
commit | ab42271cd6d17b09409d5c8e5a2c80cf5ae4c1cf (patch) | |
tree | e71beec66780a4400ebdb0c0e58ff09ea594cf3b /source3/smbd | |
parent | 561a6634b25dad6c8225ce630cc4a25466f5f6f8 (diff) | |
download | samba-ab42271cd6d17b09409d5c8e5a2c80cf5ae4c1cf.tar.gz samba-ab42271cd6d17b09409d5c8e5a2c80cf5ae4c1cf.tar.bz2 samba-ab42271cd6d17b09409d5c8e5a2c80cf5ae4c1cf.zip |
Add msdfs proxy functionality to HEAD.
(This used to be commit 9df93b1ffc9ce98302540cc3d2cbd66787abc4fd)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/service.c | 7 |
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, |