r12426: w2k3 refused 0x1B names registered as group names
[samba.git] / source / nbt_server / wins / winsserver.c
index 6e2d470a1e25929721a452d4d6cc6c2a9bbdbae7..9bbd8c643202322ded37db4b8dd83dd35d9d0b3d 100644 (file)
@@ -193,6 +193,12 @@ static void nbtd_winsserver_register(struct nbt_name_socket *nbtsock,
                goto done;
        }
 
+       /* w2k3 refuses 0x1B names with marked as group */
+       if (name->type == NBT_NAME_PDC && (nb_flags & NBT_NM_GROUP)) {
+               rcode = NBT_RCODE_RFS;
+               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;