summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@sernet.de>2008-03-25 17:35:33 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:52 +0100
commite1c968afd85c229490f1e6c13da94a6ef824b122 (patch)
treecc8deb4c877a849261917c4397d388d9c97bf472 /source4/nbt_server
parentfb64b12be5c347645976f8000a79f2d31c9a5c79 (diff)
downloadsamba-e1c968afd85c229490f1e6c13da94a6ef824b122.tar.gz
samba-e1c968afd85c229490f1e6c13da94a6ef824b122.tar.bz2
samba-e1c968afd85c229490f1e6c13da94a6ef824b122.zip
winsserver: add "wreplsrv:propagate name releases" option
Add an option to propagate name releases directly. This make the results for #1C name queries more consistent among all servers. It's off by default to match windows. metze (from samba4wins tree 166e9fdffb9f4e26513c3b4ec1f6f168ecbe18f8)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/wins/winsserver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 464bf804a7..798e9c743a 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -950,6 +950,13 @@ static void nbtd_winsserver_release(struct nbt_name_socket *nbtsock,
if (strcmp(rec->wins_owner, winssrv->wins_db->local_owner) != 0) {
modify_flags = WINSDB_FLAG_ALLOC_VERSION | WINSDB_FLAG_TAKE_OWNERSHIP;
}
+ if (lp_parm_bool(iface->nbtsrv->task->lp_ctx, NULL, "wreplsrv", "propagate name releases", false)) {
+ /*
+ * We have an option to propagate every name release,
+ * this is off by default to match windows servers
+ */
+ modify_flags = WINSDB_FLAG_ALLOC_VERSION | WINSDB_FLAG_TAKE_OWNERSHIP;
+ }
} else if (rec->state == WREPL_STATE_RELEASED) {
/*
* if we're not the owner, we need to take the owner ship