s3: rpc_server: Store new association groups in the id tree
authorSamuel Cabrero <scabrero@samba.org>
Fri, 26 Jun 2020 15:20:32 +0000 (17:20 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 7 Apr 2021 09:18:30 +0000 (09:18 +0000)
commitaac8be5419fdd5e222263e3558d556c1d1dc4cef
treee4c01cc4911dabed083a848e59f55eff2a4f9ef6
parentf5178ef11e675b07ff49c8f1e0b1e193fc0babb2
s3: rpc_server: Store new association groups in the id tree

Right now a new association group is created for each connection
assigning the legacy 0x53F0 id, but it is not stored anywhere. When a
second client request to join an association group by its id it is not
found and a new one is created with the same ID.

In practise, it means the association groups are not working even in the
same server process.

This commit stores the created association group in the idtree, but to
make use of it assigns a random id instead of the historical 0x53F0.

The test assoc_group_ok2 was wrongly passing before this change because
the same id 0x53F0 was assigned to all association groups.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/knownfail
selftest/knownfail.d/s3-rpc-assoc-groups [deleted file]
source3/rpc_server/rpc_server.c