summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2010-01-27 17:00:33 +0100
committerRob Crittenden <rcritten@redhat.com>2010-01-27 16:24:20 -0500
commitc092f3780df4417e5cf3512a1afedd109183628d (patch)
tree1d07af9ce36db99c973fc62f23d97ba874e73f76 /ipaserver
parentec142329aa98274b4e7e72930deec5a29a776523 (diff)
downloadfreeipa-c092f3780df4417e5cf3512a1afedd109183628d.tar.gz
freeipa-c092f3780df4417e5cf3512a1afedd109183628d.tar.xz
freeipa-c092f3780df4417e5cf3512a1afedd109183628d.zip
Fix schema loading in the ldap backend.
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/plugins/ldap2.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index 89cfc3f40..fa9260361 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -104,7 +104,10 @@ def load_schema(url):
conn = _ldap.initialize(url)
# assume anonymous access is enabled
conn.simple_bind_s('', '')
- schema_entry = conn.search_s('cn=schema', _ldap.SCOPE_BASE)[0]
+ schema_entry = conn.search_s(
+ 'cn=schema', _ldap.SCOPE_BASE,
+ attrlist=['attributetypes', 'objectclasses']
+ )[0]
conn.unbind_s()
except _ldap.SERVER_DOWN:
return None