diff options
author | Günther Deschner <gd@samba.org> | 2007-05-11 15:08:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:59 -0500 |
commit | 4c48a3d30cf7c852fe64735dc8661e8722693a7c (patch) | |
tree | af53d420001855d52ac6a8e328c752e420aab436 /source3/libgpo/gpo_ldap.c | |
parent | aec3df5ce810270f703ba0dd17e02409734102d8 (diff) | |
download | samba-4c48a3d30cf7c852fe64735dc8661e8722693a7c.tar.gz samba-4c48a3d30cf7c852fe64735dc8661e8722693a7c.tar.bz2 samba-4c48a3d30cf7c852fe64735dc8661e8722693a7c.zip |
r22802: Add dummy gpo_apply_security_filtering() call.
Guenther
(This used to be commit 61982d842288d880c24bc4808811452547c0b622)
Diffstat (limited to 'source3/libgpo/gpo_ldap.c')
-rw-r--r-- | source3/libgpo/gpo_ldap.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source3/libgpo/gpo_ldap.c b/source3/libgpo/gpo_ldap.c index fbed60b11d..b595e531fe 100644 --- a/source3/libgpo/gpo_ldap.c +++ b/source3/libgpo/gpo_ldap.c @@ -549,16 +549,23 @@ ADS_STATUS add_gplink_to_gpo_list(ADS_STRUCT *ads, } } - new_gpo = TALLOC_P(mem_ctx, struct GROUP_POLICY_OBJECT); + new_gpo = TALLOC_ZERO_P(mem_ctx, struct GROUP_POLICY_OBJECT); ADS_ERROR_HAVE_NO_MEMORY(new_gpo); - ZERO_STRUCTP(new_gpo); - status = ads_get_gpo(ads, mem_ctx, gp_link->link_names[i], NULL, NULL, new_gpo); if (!ADS_ERR_OK(status)) { + DEBUG(10,("failed to get gpo: %s\n", gp_link->link_names[i])); return status; } + status = ADS_ERROR_NT(gpo_apply_security_filtering(new_gpo, token)); + if (!ADS_ERR_OK(status)) { + DEBUG(10,("skipping GPO \"%s\" as object has no access to it\n", + new_gpo->display_name)); + TALLOC_FREE(new_gpo); + continue; + } + new_gpo->link = link_dn; new_gpo->link_type = link_type; |