mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
whoami fix
recent changes to the scope mechanism weren't propigated to the whoami call
This commit is contained in:
parent
091099480f
commit
16b935169c
@ -253,8 +253,9 @@ class user_find(LDAPSearch):
|
||||
)
|
||||
def pre_callback(self, ldap, filter, attrs_list, base_dn, scope, *keys, **options):
|
||||
if options.get('whoami'):
|
||||
return "(&(objectclass=posixaccount)(krbprincipalname=%s))"%\
|
||||
getattr(context, 'principal')
|
||||
return ("(&(objectclass=posixaccount)(krbprincipalname=%s))"%\
|
||||
getattr(context, 'principal'), base_dn, scope)
|
||||
|
||||
return (filter, base_dn, scope)
|
||||
|
||||
def post_callback(self, ldap, entries, truncated, *args, **options):
|
||||
|
Loading…
Reference in New Issue
Block a user