Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Added new error message for attempting to join blacklisted domain #29006
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrouin committed Aug 4, 2016
1 parent aa1300a commit 5903f66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lwbase/include/lw/winerror.h
Original file line number Diff line number Diff line change
Expand Up @@ -2292,6 +2292,7 @@
#define DNS_ERROR_RCODE_BADSIG 9016
#define DNS_ERROR_RCODE_BADKEY 9017
#define DNS_ERROR_RCODE_BADTIME 9018
#define ERROR_DOMAIN_BLACKLISTED 9500
#define DNS_INFO_NO_RECORDS 9501
#define DNS_ERROR_BAD_PACKET 9502
#define DNS_ERROR_NO_PACKET 9503
Expand Down
1 change: 1 addition & 0 deletions lwbase/src/error-table.h
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,7 @@ S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_ERROR_RCODE_NOTZONE, -1, "The name used in
S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_ERROR_RCODE_BADSIG, -1, "" )
S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_ERROR_RCODE_BADKEY, -1, "" )
S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_ERROR_RCODE_BADTIME, -1, "" )
S ( LW_STATUS_MESSAGE_NOT_FOUND, ERROR_DOMAIN_BLACKLISTED, -1, "Could not reach the DC, it has been blacklisted." )
S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_INFO_NO_RECORDS, -1, "" )
S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_ERROR_BAD_PACKET, -1, "A bad packet was received from a DNS server. Potentially the requested address does not exist." )
S ( LW_STATUS_MESSAGE_NOT_FOUND, DNS_ERROR_NO_PACKET, -1, "" )
Expand Down
2 changes: 1 addition & 1 deletion netlogon/server/api/lwnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ LWNetSrvGetDCNameDiscoverInternal(

if (!dwServerCount)
{
dwError = DNS_ERROR_BAD_PACKET;
dwError = ERROR_DOMAIN_BLACKLISTED;
BAIL_ON_LWNET_ERROR(dwError);
}

Expand Down

0 comments on commit 5903f66

Please sign in to comment.