1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/python
Andreas Schneider 03b6dae663 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 e4c3c61302)

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
2024-03-01 09:01:06 +00:00
..
examples python: Remove redundant assignments 2022-05-10 05:19:34 +00:00
samba python:gp: Implement client site lookup in site_dn_for_machine() 2024-03-01 09:01:06 +00:00
modules.c Use python.h from libreplace 2023-11-20 15:37:33 +00:00
modules.h python: Remove const from PyList_AsStringList() 2023-07-21 05:23:32 +00:00
py3compat.h Use python.h from libreplace 2023-11-20 15:37:33 +00:00
pyglue.c python: Generate HRESULT definitions automatically 2024-01-15 01:56:53 +00:00
wscript pyglue: Export some GKDI constants 2023-12-21 20:21:34 +00:00