python:gp: Implement client site lookup in site_dn_for_machine()
authorAndreas Schneider <asn@samba.org>
Wed, 21 Feb 2024 08:10:47 +0000 (09:10 +0100)
committerJule Anger <janger@samba.org>
Fri, 1 Mar 2024 09:01:06 +0000 (09:01 +0000)
commit03b6dae6630c6de85af1f20276df11e67d7601e2
tree4ce25ceac0d29332853609e6d84c8fcc47c1c9c7
parente51e72dd14afa3e299a577774c430f4b4b1e2b17
python:gp: Implement client site lookup in site_dn_for_machine()

This is [MS-GPOL] 3.2.5.1.4 Site Search.

The netr_DsRGetSiteName() needs to run over local rpc, however we do not
have the call implemented in our rpc_server. What netr_DsRGetSiteName()
actually does is an ldap query to get the sitename, we can just do the
same.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15588

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit e4c3c61302b12419f041867b58350f11dc800318)

Autobuild-User(v4-20-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-20-test): Fri Mar  1 09:01:06 UTC 2024 on atb-devel-224
python/samba/gp/gpclass.py