summaryrefslogtreecommitdiff
path: root/dfs_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-30 00:49:13 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-30 01:22:09 +0200
commit6c21ae71035d5bec3a1056ea10e0a72073a3717b (patch)
treecdf706bc026b5f0e53bee860b9be5d35e145f9d5 /dfs_server
parentb567d3a607d7bb27c804c6450af4b9144282214d (diff)
downloadsamba-6c21ae71035d5bec3a1056ea10e0a72073a3717b.tar.gz
samba-6c21ae71035d5bec3a1056ea10e0a72073a3717b.tar.bz2
samba-6c21ae71035d5bec3a1056ea10e0a72073a3717b.zip
dfs_server_ad: return STATUS_NOT_FOUND if the client connects to an ip address
metze
Diffstat (limited to 'dfs_server')
-rw-r--r--dfs_server/dfs_server_ad.c8
1 files changed, 8 insertions, 0 deletions
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) &&