From c092f3780df4417e5cf3512a1afedd109183628d Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Wed, 27 Jan 2010 17:00:33 +0100 Subject: Fix schema loading in the ldap backend. --- ipaserver/plugins/ldap2.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipaserver/plugins/ldap2.py') 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 -- cgit