1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

jra's patch -- fix anonymous self referral code to check that a share is an msdfs root first

This commit is contained in:
Gerald Carter 0001-01-01 00:00:00 +00:00
parent 98a25dcda8
commit 641c2acd92

View File

@ -481,6 +481,12 @@ BOOL get_referred_path(char *pathname, struct junction_map *jucn,
return False;
}
if (!lp_msdfs_root(snum)) {
DEBUG(3,("get_referred_path: .%s. in dfs path %s is not a dfs root.\n",
dp.servicename, pathname));
goto out;
}
/*
* Self referrals are tested with a anonymous IPC connection and
* a GET_DFS_REFERRAL call to \\server\share. (which means dp.reqpath[0] points
@ -496,12 +502,6 @@ BOOL get_referred_path(char *pathname, struct junction_map *jucn,
if (!create_conn_struct(conn, snum, conn_path))
return False;
if (!lp_msdfs_root(SNUM(conn))) {
DEBUG(3,("get_referred_path: .%s. in dfs path %s is not a dfs root.\n",
dp.servicename, pathname));
goto out;
}
if (*lp_msdfs_proxy(snum) != '\0') {
struct referral* ref;
jucn->referral_count = 1;