From f878815fc2f2b269b35aeda86e49250be4d8e5c0 Mon Sep 17 00:00:00 2001 From: Dmitry Degtyarev <kevl@altlinux.org> Date: Thu, 8 Apr 2021 13:18:00 +0400 Subject: [PATCH] add comment about extra ace --- src/adldap/ad_interface.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/adldap/ad_interface.cpp b/src/adldap/ad_interface.cpp index a25770cd..0c36e311 100644 --- a/src/adldap/ad_interface.cpp +++ b/src/adldap/ad_interface.cpp @@ -1077,6 +1077,13 @@ bool AdInterface::create_gpo(const QString &display_name, QString &dn_out) { struct security_descriptor domain_sd; ndr_security_pull_security_descriptor(ndr_pull, NDR_SCALARS|NDR_BUFFERS, &domain_sd); + // TODO: not sure why but my + // gp_create_gpt_security_descriptor() call creates an + // sd that has 1 extra ace than samba's version + // (ACL:S-1-5-11:5/3/0x00000000) + // sid = S-1-5-11 = SID_NT_AUTHENTICATED_USERS + // type = 5 = SEC_ACE_TYPE_ACCESS_ALLOWED_OBJECT + // Create sysvol descriptor from domain descriptor (not // one to one, some modifications are needed) struct security_descriptor *sysvol_sd;