mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
Fix a comment and some typos
This commit is contained in:
parent
f06bb4fca7
commit
252e9b61eb
@ -120,7 +120,7 @@ class CertDB(object):
|
||||
else:
|
||||
trust_flag="u,u,u"
|
||||
|
||||
# Generate a CSR
|
||||
# Import a certificate from an ASCII file
|
||||
args = ["-A",
|
||||
"-n", nickname,
|
||||
"-t", trust_flag,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user