From 6c21ae71035d5bec3a1056ea10e0a72073a3717b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 30 Jul 2012 00:49:13 +0200 Subject: dfs_server_ad: return STATUS_NOT_FOUND if the client connects to an ip address metze --- dfs_server/dfs_server_ad.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dfs_server') diff --git a/dfs_server/dfs_server_ad.c b/dfs_server/dfs_server_ad.c index 6b71f70984..a354ec29e9 100644 --- a/dfs_server/dfs_server_ad.c +++ b/dfs_server/dfs_server_ad.c @@ -26,6 +26,7 @@ #include "param/param.h" #include "lib/tsocket/tsocket.h" #include "dfs_server/dfs_server_ad.h" +#include "lib/util/util_net.h" #define MAX_DFS_RESPONSE 56*1024 /* 56 Kb */ @@ -816,7 +817,14 @@ NTSTATUS dfs_server_ad_get_referrals(struct loadparm_context *lp_ctx, * handle it here. */ return NT_STATUS_NOT_FOUND; + } + if (is_ipaddress(server_name)) { + /* + * If it is not domain related do not + * handle it here. + */ + return NT_STATUS_NOT_FOUND; } if ((strcasecmp_m(server_name, netbios_domain) != 0) && -- cgit