mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Do a more specific search for the user
This commit is contained in:
@@ -203,7 +203,9 @@ class user_mod(crud.Mod):
|
||||
'Edit an existing user.'
|
||||
def execute(self, *args, **kw):
|
||||
uid=args[0]
|
||||
result = servercore.get_sub_entry(servercore.basedn, "uid=%s" % uid, ["*"])
|
||||
|
||||
# Get the existing user entry
|
||||
result = servercore.get_sub_entry("cn=accounts," + servercore.basedn, "uid=%s" % uid, ["*"])
|
||||
|
||||
user = kw
|
||||
dn = result.get('dn')
|
||||
|
||||
Reference in New Issue
Block a user