summaryrefslogtreecommitdiff
path: root/source/libgpo
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-05-11 12:41:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:21:57 -0500
commitb376a39fbf42a6a541fd311418c4a980b9fd4b9e (patch)
tree30b0f2374e283b5d0eed6bb2fc2f93f6cfecedd7 /source/libgpo
parent5b4a4df26f32fe1947a0c4fb741a4cb89e308f92 (diff)
downloadsamba-b376a39fbf42a6a541fd311418c4a980b9fd4b9e.tar.gz
r22796: Add security descriptor to GROUP_POLICY_OBJECT structure (in preparation of
adding GPO security filtering for libgpo). Guenther
Diffstat (limited to 'source/libgpo')
-rw-r--r--source/libgpo/gpo_ldap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/libgpo/gpo_ldap.c b/source/libgpo/gpo_ldap.c
index 6c1079832d0..112d2bb1f9b 100644
--- a/source/libgpo/gpo_ldap.c
+++ b/source/libgpo/gpo_ldap.c
@@ -434,6 +434,9 @@ ADS_STATUS ads_delete_gpo_link(ADS_STRUCT *ads,
gpo->machine_extensions = ads_pull_string(ads, mem_ctx, res, "gPCMachineExtensionNames");
gpo->user_extensions = ads_pull_string(ads, mem_ctx, res, "gPCUserExtensionNames");
+ ads_pull_sd(ads, mem_ctx, res, "ntSecurityDescriptor", &gpo->security_descriptor);
+ ADS_ERROR_HAVE_NO_MEMORY(gpo->security_descriptor);
+
return ADS_ERROR(LDAP_SUCCESS);
}
@@ -455,7 +458,7 @@ ADS_STATUS ads_get_gpo(ADS_STRUCT *ads,
const char *attrs[] = { "cn", "displayName", "flags", "gPCFileSysPath",
"gPCFunctionalityVersion", "gPCMachineExtensionNames",
"gPCUserExtensionNames", "gPCWQLFilter", "name",
- "versionNumber", NULL};
+ "versionNumber", "ntSecurityDescriptor", NULL};
ZERO_STRUCTP(gpo);