locally stored version. If not, fetch the required policy via CIFS
****************************************************************/
-NTSTATUS check_refresh_gpo(ADS_STRUCT *ads,
- TALLOC_CTX *mem_ctx,
- const char *cache_dir,
+NTSTATUS check_refresh_gpo(TALLOC_CTX *mem_ctx,
+ struct cli_credentials *creds,
+ const char *cache_dir,
uint32_t flags,
const struct GROUP_POLICY_OBJECT *gpo)
{
DEBUG(1,("check_refresh_gpo: need to refresh GPO\n"));
- result = gpo_fetch_files(mem_ctx, ads, cache_dir, gpo);
+ result = gpo_fetch_files(mem_ctx, creds, cache_dir, gpo);
if (!NT_STATUS_IS_OK(result)) {
goto out;
}
not, go and get each required GPO via CIFS
****************************************************************/
-NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads,
- TALLOC_CTX *mem_ctx,
+NTSTATUS check_refresh_gpo_list(TALLOC_CTX *mem_ctx,
+ struct cli_credentials *creds,
const char *cache_dir,
uint32_t flags,
const struct GROUP_POLICY_OBJECT *gpo_list)
for (gpo = gpo_list; gpo; gpo = gpo->next) {
- result = check_refresh_gpo(ads, mem_ctx, cache_dir, flags, gpo);
+ result = check_refresh_gpo(mem_ctx, creds, cache_dir, flags, gpo);
if (!NT_STATUS_IS_OK(result)) {
goto out;
}