summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/plugins')
-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