summaryrefslogtreecommitdiff
path: root/source4/nbt_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-13 12:34:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:48 -0500
commitffa5c91d0fd63c789bb7d73cb91f50841fb4f503 (patch)
tree21656b335c2938db24c7aceaf6c6ea1d0c0af50f /source4/nbt_server
parent5a88d5211ba0f6b1d09cdd92489b34d0e603716b (diff)
downloadsamba-ffa5c91d0fd63c789bb7d73cb91f50841fb4f503.tar.gz
samba-ffa5c91d0fd63c789bb7d73cb91f50841fb4f503.tar.bz2
samba-ffa5c91d0fd63c789bb7d73cb91f50841fb4f503.zip
r5375: use a real DN in the WINS database. We now pass the NBT-WINS test.
(This used to be commit 807a3a1f80b1c065ee799531cdf947b31d1a109f)
Diffstat (limited to 'source4/nbt_server')
-rw-r--r--source4/nbt_server/winsdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/nbt_server/winsdb.c b/source4/nbt_server/winsdb.c
index bb7ce49b9b..53fceedf37 100644
--- a/source4/nbt_server/winsdb.c
+++ b/source4/nbt_server/winsdb.c
@@ -40,7 +40,7 @@ struct winsdb_record *winsdb_load(struct wins_server *winssrv,
const char *expr;
int i;
- expr = talloc_asprintf(tmp_ctx, "dn=%s", nbt_name_string(tmp_ctx, name));
+ expr = talloc_asprintf(tmp_ctx, "dn=NAME=%s", nbt_name_string(tmp_ctx, name));
if (expr == NULL) goto failed;
/* find the record in the WINS database */
@@ -93,7 +93,7 @@ static struct ldb_message *winsdb_message(struct wins_server *winssrv,
struct ldb_message *msg = ldb_msg_new(mem_ctx);
if (msg == NULL) goto failed;
- msg->dn = nbt_name_string(msg, rec->name);
+ msg->dn = talloc_asprintf(msg, "NAME=%s", nbt_name_string(msg, rec->name));
if (msg->dn == NULL) goto failed;
ret |= ldb_msg_add_fmt(ldb, msg, "active", "%u", rec->state);
ret |= ldb_msg_add_fmt(ldb, msg, "nbFlags", "0x%04x", rec->nb_flags);