summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-08 21:05:33 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-31 21:43:11 +0200
commit3244f6feaab218984978ac14e156d62e101a1104 (patch)
tree18aabe0ff359a89a9b137b1ff465aa6057c8191a /source4
parent4e3afb36dab12b460cdd0cbc95607d4032115c05 (diff)
downloadsamba-3244f6feaab218984978ac14e156d62e101a1104.tar.gz
samba-3244f6feaab218984978ac14e156d62e101a1104.tar.bz2
samba-3244f6feaab218984978ac14e156d62e101a1104.zip
s4:dsdb/pydsdb.c - import "systemFlags" into Python
Needed by ldap.py tests
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/pydsdb.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/dsdb/pydsdb.c b/source4/dsdb/pydsdb.c
index 6966762c14..1967b33e4a 100644
--- a/source4/dsdb/pydsdb.c
+++ b/source4/dsdb/pydsdb.c
@@ -580,6 +580,32 @@ void initdsdb(void)
PyModule_AddObject(m, "DS_DOMAIN_FUNCTION_2008_R2",
PyInt_FromLong(DS_DOMAIN_FUNCTION_2008_R2));
+ /* "systemFlags" */
+ PyModule_AddObject(m, "SYSTEM_FLAG_CR_NTDS_NC",
+ PyInt_FromLong(SYSTEM_FLAG_CR_NTDS_NC));
+ PyModule_AddObject(m, "SYSTEM_FLAG_CR_NTDS_DOMAIN",
+ PyInt_FromLong(SYSTEM_FLAG_CR_NTDS_DOMAIN));
+ PyModule_AddObject(m, "SYSTEM_FLAG_CR_NTDS_NOT_GC_REPLICATED",
+ PyInt_FromLong(SYSTEM_FLAG_CR_NTDS_NOT_GC_REPLICATED));
+ PyModule_AddObject(m, "SYSTEM_FLAG_SCHEMA_BASE_OBJECT",
+ PyInt_FromLong(SYSTEM_FLAG_SCHEMA_BASE_OBJECT));
+ PyModule_AddObject(m, "SYSTEM_FLAG_ATTR_IS_RDN",
+ PyInt_FromLong(SYSTEM_FLAG_ATTR_IS_RDN));
+ PyModule_AddObject(m, "SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE",
+ PyInt_FromLong(SYSTEM_FLAG_DISALLOW_MOVE_ON_DELETE));
+ PyModule_AddObject(m, "SYSTEM_FLAG_DOMAIN_DISALLOW_MOVE",
+ PyInt_FromLong(SYSTEM_FLAG_DOMAIN_DISALLOW_MOVE));
+ PyModule_AddObject(m, "SYSTEM_FLAG_DOMAIN_DISALLOW_RENAME",
+ PyInt_FromLong(SYSTEM_FLAG_DOMAIN_DISALLOW_RENAME));
+ PyModule_AddObject(m, "SYSTEM_FLAG_CONFIG_ALLOW_LIMITED_MOVE",
+ PyInt_FromLong(SYSTEM_FLAG_CONFIG_ALLOW_LIMITED_MOVE));
+ PyModule_AddObject(m, "SYSTEM_FLAG_CONFIG_ALLOW_MOVE",
+ PyInt_FromLong(SYSTEM_FLAG_CONFIG_ALLOW_MOVE));
+ PyModule_AddObject(m, "SYSTEM_FLAG_CONFIG_ALLOW_RENAME",
+ PyInt_FromLong(SYSTEM_FLAG_CONFIG_ALLOW_RENAME));
+ PyModule_AddObject(m, "SYSTEM_FLAG_DISALLOW_DELETE",
+ PyInt_FromLong(SYSTEM_FLAG_DISALLOW_DELETE));
+
/* Kerberos encryption type constants */
PyModule_AddObject(m, "ENC_ALL_TYPES",
PyInt_FromLong(ENC_ALL_TYPES));