summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-10-24 15:56:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:13 -0500
commit3aae4d0224815bac3d2af3f528ef732bb4035437 (patch)
treee133caeefb6ffd5dfc5fae79179121f9de7e38f8 /source4
parent7751bd939ffb89cfc1dc6fae6b6c6e2a40d338c7 (diff)
downloadsamba-3aae4d0224815bac3d2af3f528ef732bb4035437.tar.gz
samba-3aae4d0224815bac3d2af3f528ef732bb4035437.tar.bz2
samba-3aae4d0224815bac3d2af3f528ef732bb4035437.zip
r11279: it should be only possible to register a 0x1C name, when the NBT_NM_GROUP flag is set
metze (This used to be commit 81447f440cb339bf8c72706a752b853d3acb0e2d)
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/wins/winsserver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 0d91f73eda..8a42e0a589 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -150,6 +150,12 @@ static void nbtd_winsserver_register(struct nbt_name_socket *nbtsock,
goto done;
}
+ /* w2k3 refuses 0x1C names with out marked as group */
+ if (name->type == NBT_NAME_LOGON && !(nb_flags & NBT_NM_GROUP)) {
+ rcode = NBT_RCODE_RFS;
+ goto done;
+ }
+
status = winsdb_lookup(winssrv->wins_db, name, packet, &rec);
if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_NOT_FOUND, status)) {
rcode = wins_register_new(nbtsock, packet, src);