From 252e9b61eba65743b834f799f4f2321f66b12676 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 11 May 2009 16:37:09 -0400 Subject: Fix a comment and some typos --- ipaserver/plugins/ldapapi.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'ipaserver/plugins/ldapapi.py') diff --git a/ipaserver/plugins/ldapapi.py b/ipaserver/plugins/ldapapi.py index 995abe38..cb55f1cf 100644 --- a/ipaserver/plugins/ldapapi.py +++ b/ipaserver/plugins/ldapapi.py @@ -46,10 +46,10 @@ class ldap(CrudBackend): if ccache is None: raise errors.CCacheError() conn = ipaldap.IPAdmin(self.env.ldap_host, self.env.ldap_port) - principle = krbV.CCache( + principal = krbV.CCache( name=ccache, context=krbV.default_context() ).principal().name - conn.set_krbccache(ccache, principle) + conn.set_krbccache(ccache, principal) return conn def destroy_connection(self): @@ -443,4 +443,9 @@ class ldap(CrudBackend): return results + def get_effective_rights(self, dn, attrs=None): + binddn = self.find_entry_dn("krbprincipalname", self.conn.principal, "posixAccount") + + return servercore.get_effective_rights(binddn, dn, attrs) + api.register(ldap) -- cgit