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 08:52:55 +0000 (08:52 +0000)
commit8ea3973ad4025c460b5e0da8d67a3deec734e7c6
tree842afdfa8d384e46f17e6ed208539806c44c8b89
parent111e85a589cbe4ff5ce2f42e8ebfb3048d30374f
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-19-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-19-test): Fri Mar  1 08:52:55 UTC 2024 on atb-devel-224
python/samba/gp/gpclass.py