python:gp: Implement client site lookup in site_dn_for_machine()
commite4c3c61302b12419f041867b58350f11dc800318
authorAndreas Schneider <asn@samba.org>
Wed, 21 Feb 2024 08:10:47 +0000 (21 09:10 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 26 Feb 2024 08:06:08 +0000 (26 08:06 +0000)
tree205767fa9ac02b478c882c58583cd0d9b44d1e63
parente758425869729a43136ae51e6baecb2061d1525b
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>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Feb 26 08:06:08 UTC 2024 on atb-devel-224
python/samba/gp/gpclass.py