summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-29 01:49:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:54 -0500
commit21bdd5833efff11324c2c736283a2272f5a46e90 (patch)
tree6fb3c701a1e7c7eb17707c611d28eb31cbd5a091 /source3/utils
parent7a5d2f5c1a2be36366667921450eef6ecdd435d5 (diff)
downloadsamba-21bdd5833efff11324c2c736283a2272f5a46e90.tar.gz
samba-21bdd5833efff11324c2c736283a2272f5a46e90.tar.bz2
samba-21bdd5833efff11324c2c736283a2272f5a46e90.zip
r18988: Check and refresh expired GPOs.
Guenther (This used to be commit e0e44bfadbf9bce8a5d3fe969c0f6da59a0cc29e)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_ads_gpo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_ads_gpo.c b/source3/utils/net_ads_gpo.c
index be018ad78f..0a9e0fb62a 100644
--- a/source3/utils/net_ads_gpo.c
+++ b/source3/utils/net_ads_gpo.c
@@ -111,6 +111,11 @@ static int net_ads_gpo_effective(int argc, const char **argv)
goto out;
}
+ if (!NT_STATUS_IS_OK(result = check_refresh_gpo_list(ads, mem_ctx, gpo_list))) {
+ printf("failed to refresh GPOs: %s\n", nt_errstr(result));
+ goto out;
+ }
+
for (gpo = gpo_list; gpo; gpo = gpo->next) {
char *server, *share, *nt_path, *unix_path;