svn commit: samba r5375 - in branches/SAMBA_4_0/source/nbt_server: .

tridge at samba.org tridge at samba.org
Sun Feb 13 12:34:54 GMT 2005


Author: tridge
Date: 2005-02-13 12:34:54 +0000 (Sun, 13 Feb 2005)
New Revision: 5375

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5375

Log:
use a real DN in the WINS database. We now pass the NBT-WINS test.

Modified:
   branches/SAMBA_4_0/source/nbt_server/winsdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/winsdb.c
===================================================================
--- branches/SAMBA_4_0/source/nbt_server/winsdb.c	2005-02-13 12:27:57 UTC (rev 5374)
+++ branches/SAMBA_4_0/source/nbt_server/winsdb.c	2005-02-13 12:34:54 UTC (rev 5375)
@@ -40,7 +40,7 @@
 	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 @@
 	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);



More information about the samba-cvs mailing list