Skip to content

Commit

Permalink
dfs_server_ad: return STATUS_NOT_FOUND if the client connects to an i…
Browse files Browse the repository at this point in the history
…p address

metze
  • Loading branch information
metze-samba committed Jul 29, 2012
1 parent b567d3a commit 6c21ae7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dfs_server/dfs_server_ad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -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) &&
Expand Down

0 comments on commit 6c21ae7

Please sign in to comment.