diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-01-27 17:00:33 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-01-27 16:24:20 -0500 |
commit | c092f3780df4417e5cf3512a1afedd109183628d (patch) | |
tree | 1d07af9ce36db99c973fc62f23d97ba874e73f76 | |
parent | ec142329aa98274b4e7e72930deec5a29a776523 (diff) | |
download | freeipa-c092f3780df4417e5cf3512a1afedd109183628d.tar.gz freeipa-c092f3780df4417e5cf3512a1afedd109183628d.tar.xz freeipa-c092f3780df4417e5cf3512a1afedd109183628d.zip |
Fix schema loading in the ldap backend.
-rw-r--r-- | ipaserver/plugins/ldap2.py | 5 |
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 |