summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-07-13 23:34:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:36 -0500
commite997cf9fe2a1ed8546d841acd6f4b3a9ab3676d4 (patch)
tree4ec1ec21b5b3b58a70f73918a1f16794f9321610
parent3488299232d4774a392ed6c5c04a6bca3213ac5e (diff)
downloadsamba-e997cf9fe2a1ed8546d841acd6f4b3a9ab3676d4.tar.gz
samba-e997cf9fe2a1ed8546d841acd6f4b3a9ab3676d4.tar.bz2
samba-e997cf9fe2a1ed8546d841acd6f4b3a9ab3676d4.zip
r23872: Dump all GPFLAGS in dump_gpo().
Guenther (This used to be commit 4b5c4b4fffbd62917894432c9bb6946f181668c4)
-rw-r--r--source3/libgpo/gpo_util.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/source3/libgpo/gpo_util.c b/source3/libgpo/gpo_util.c
index 23b9cf332a..338fa9cda3 100644
--- a/source3/libgpo/gpo_util.c
+++ b/source3/libgpo/gpo_util.c
@@ -211,13 +211,23 @@ void dump_gpo(TALLOC_CTX *mem_ctx, struct GROUP_POLICY_OBJECT *gpo, int debuglev
DEBUGADD(lvl,("dspath:\t\t%s\n", gpo->ds_path));
DEBUGADD(lvl,("options:\t\t%d ", gpo->options));
- if (gpo->options & GPFLAGS_USER_SETTINGS_DISABLED) {
- DEBUGADD(lvl,("GPFLAGS_USER_SETTINGS_DISABLED "));
- }
- if (gpo->options & GPFLAGS_MACHINE_SETTINGS_DISABLED) {
- DEBUGADD(lvl,("GPFLAGS_MACHINE_SETTINGS_DISABLED"));
+ switch (gpo->options) {
+ case GPFLAGS_ALL_ENABLED:
+ DEBUGADD(lvl,("GPFLAGS_ALL_ENABLED\n"));
+ break;
+ case GPFLAGS_USER_SETTINGS_DISABLED:
+ DEBUGADD(lvl,("GPFLAGS_USER_SETTINGS_DISABLED\n"));
+ break;
+ case GPFLAGS_MACHINE_SETTINGS_DISABLED:
+ DEBUGADD(lvl,("GPFLAGS_MACHINE_SETTINGS_DISABLED\n"));
+ break;
+ case GPFLAGS_ALL_DISABLED:
+ DEBUGADD(lvl,("GPFLAGS_ALL_DISABLED\n"));
+ break;
+ default:
+ DEBUGADD(lvl,("unknown option: %d\n", gpo->options));
+ break;
}
- DEBUGADD(lvl,("\n"));
DEBUGADD(lvl,("link:\t\t\t%s\n", gpo->link));
DEBUGADD(lvl,("link_type:\t\t%d ", gpo->link_type));