summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-30 19:05:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:26 -0500
commit6c138c8a58a622fd95164d34df0d79246a720fc1 (patch)
tree4986ba49034621f031f9c884126b181f382cf061 /source4/nbt_server
parentcf09c00c4e96c49e334fa0a68b438eaa6c69d270 (diff)
downloadsamba-6c138c8a58a622fd95164d34df0d79246a720fc1.tar.gz
samba-6c138c8a58a622fd95164d34df0d79246a720fc1.tar.bz2
samba-6c138c8a58a622fd95164d34df0d79246a720fc1.zip
r21059: add an option to implement what windows wins server confgure via
HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Prepend1BTo1CQueries nbtd:wins_prepend1Bto1Cqueries=no will turn it off metze (This used to be commit 5362eede6b097c3a62d5c4d59151f8e26d89f1c0)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/wins/winsserver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 9f9e72cbdc..4d40b31ba6 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -583,8 +583,14 @@ static void nbtd_winsserver_query(struct nbt_name_socket *nbtsock,
/*
* w2k3 returns the first address of the 0x1B record as first address
* to a 0x1C query
+ *
+ * since Windows 2000 Service Pack 2 there's on option to trigger this behavior:
+ *
+ * HKEY_LOCAL_MACHINE\System\CurrentControlset\Services\WINS\Parameters\Prepend1BTo1CQueries
+ * Typ: Daten REG_DWORD
+ * Value: 0 = deactivated, 1 = activated
*/
- if (name->type == NBT_NAME_LOGON) {
+ if (name->type == NBT_NAME_LOGON && lp_parm_bool(-1, "nbtd", "wins_prepend1Bto1Cqueries", True)) {
struct nbt_name name_1b;
name_1b = *name;