diff options
author | Günther Deschner <gd@samba.org> | 2007-05-11 12:52:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:57 -0500 |
commit | 9c170fce2632e76bda6bb9a644777c978785cff1 (patch) | |
tree | eb3fe76940b7867e6f13fd2f919ef55e16bddac3 /source3/libgpo | |
parent | 95bc08e9545850ba57cdcf79bf9f62872b2946c0 (diff) | |
download | samba-9c170fce2632e76bda6bb9a644777c978785cff1.tar.gz samba-9c170fce2632e76bda6bb9a644777c978785cff1.tar.bz2 samba-9c170fce2632e76bda6bb9a644777c978785cff1.zip |
r22797: We are only interested in the DACL of the security descriptor, so search with
the SD_FLAGS control.
Guenther
(This used to be commit 648df57e53ddabe74052e816b8eba95180736208)
Diffstat (limited to 'source3/libgpo')
-rw-r--r-- | source3/libgpo/gpo_ldap.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/libgpo/gpo_ldap.c b/source3/libgpo/gpo_ldap.c index 112d2bb1f9..b19ef0cd7e 100644 --- a/source3/libgpo/gpo_ldap.c +++ b/source3/libgpo/gpo_ldap.c @@ -459,6 +459,7 @@ ADS_STATUS ads_get_gpo(ADS_STRUCT *ads, "gPCFunctionalityVersion", "gPCMachineExtensionNames", "gPCUserExtensionNames", "gPCWQLFilter", "name", "versionNumber", "ntSecurityDescriptor", NULL}; + uint32 sd_flags = DACL_SECURITY_INFORMATION; ZERO_STRUCTP(gpo); @@ -472,7 +473,9 @@ ADS_STATUS ads_get_gpo(ADS_STRUCT *ads, gpo_dn = gpo_dn + strlen("LDAP://"); } - status = ads_search_dn(ads, &res, gpo_dn, attrs); + status = ads_search_retry_dn_sd_flags(ads, &res, + sd_flags, + gpo_dn, attrs); } else if (display_name || guid_name) { @@ -482,9 +485,9 @@ ADS_STATUS ads_get_gpo(ADS_STRUCT *ads, display_name ? display_name : guid_name); ADS_ERROR_HAVE_NO_MEMORY(filter); - status = ads_do_search_all(ads, ads->config.bind_path, - LDAP_SCOPE_SUBTREE, filter, - attrs, &res); + status = ads_do_search_all_sd_flags(ads, ads->config.bind_path, + LDAP_SCOPE_SUBTREE, filter, + attrs, sd_flags, &res); } if (!ADS_ERR_OK(status)) { |