summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-28 12:18:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-29 18:04:41 +1100
commite54c8bef8a926abf7cd52af5906ed0736f52d800 (patch)
tree2da8559c2a8dd42b09560d1f6d7186a9bef4dcd0
parent97f0d6c27834975256fe21518007807400e61f4b (diff)
downloadsamba-e54c8bef8a926abf7cd52af5906ed0736f52d800.tar.gz
samba-e54c8bef8a926abf7cd52af5906ed0736f52d800.tar.bz2
samba-e54c8bef8a926abf7cd52af5906ed0736f52d800.zip
s4-pydsdb: added GPO policy flags
-rw-r--r--source4/dsdb/pydsdb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c
index e5e6767da8..81c1ca55d4 100644
--- a/source4/dsdb/pydsdb.c
+++ b/source4/dsdb/pydsdb.c
@@ -27,6 +27,7 @@
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
#include "librpc/rpc/pyrpc_util.h"
+#include "lib/policy/policy.h"
/* There's no Py_ssize_t in 2.4, apparently */
#if PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION < 5
@@ -825,4 +826,10 @@ void initdsdb(void)
ADD_DSDB_FLAG(NTDSCONN_KCC_SERVER_FAILOVER_TOPOLOGY);
ADD_DSDB_FLAG(NTDSCONN_KCC_SITE_FAILOVER_TOPOLOGY);
ADD_DSDB_FLAG(NTDSCONN_KCC_REDUNDANT_SERVER_TOPOLOGY);
+
+ /* GPO policy flags */
+ ADD_DSDB_FLAG(GPLINK_OPT_DISABLE);
+ ADD_DSDB_FLAG(GPLINK_OPT_ENFORCE);
+ ADD_DSDB_FLAG(GPO_FLAG_USER_DISABLE);
+ ADD_DSDB_FLAG(GPO_FLAG_MACHINE_DISABLE);
}