summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-04 14:29:45 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-07-04 14:29:45 +0100
commitc837fda74052c5dd4e2060f334f5ccec3f6c84e8 (patch)
tree1a7683b9533a5b89134d76d4f12e227c3a2fd5c6 /pykolab
parentc6afa01abf303dcc83ba1967c31832e14fd23b73 (diff)
downloadpykolab-c837fda74052c5dd4e2060f334f5ccec3f6c84e8.tar.gz
Add a constant for KOLAB_LIB_PATH (/var/lib/kolab/)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/constants.py.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/pykolab/constants.py.in b/pykolab/constants.py.in
index 190d8d5..7073154 100644
--- a/pykolab/constants.py.in
+++ b/pykolab/constants.py.in
@@ -61,6 +61,7 @@ except IndexError:
# The system RC directory
RC_DIR = "/etc/rc.d/init.d/"
+KOLAB_LIB_PATH = '/var/lib/kolab/'
# Service map;
#
@@ -81,3 +82,28 @@ SERVICE_MAP = {
'description': _('OpenLDAP or compatible')
},
}
+
+import ldap
+LDAP_SCOPE = {
+ 'base': ldap.SCOPE_BASE,
+ 'sub': ldap.SCOPE_SUBTREE,
+ 'one': ldap.SCOPE_ONELEVEL
+ }
+
+SUPPORTED_LDAP_CONTROLS = {
+ 0: {
+ 'desc': 'Persistent Search Control',
+ 'oid': '2.16.840.1.113730.3.4.3',
+ 'func': '_persistent_search'
+ },
+ 1: {
+ 'desc': 'Simple Paged Results Control',
+ 'oid': '1.2.840.113556.1.4.319',
+ 'func': '_paged_search'
+ },
+ 2: {
+ 'desc': 'Virtual List View Control',
+ 'oid': '2.16.840.1.113730.3.4.9',
+ 'func': '_vlv_search'
+ }
+ } \ No newline at end of file