]> git.ipfire.org Git - ipfire.org.git/commitdiff
people: Search for UIDs, too
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Oct 2018 12:25:20 +0000 (13:25 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 15 Oct 2018 12:25:20 +0000 (13:25 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/backend/accounts.py

index 0872db953ff07d7acae4214a0df1f7a116a3d30d..0fd16cbc7c803fe2351564ff3d0bbf68a65bbd93 100644 (file)
@@ -66,7 +66,7 @@ class Accounts(Object):
 
                # Find accounts by name
                if not accounts:
-                       for account in self._search("(&(objectClass=posixAccount)(cn=*%s*))" % query):
+                       for account in self._search("(&(objectClass=posixAccount)(|(cn=*%s*)(uid=*%s*)))" % (query, query)):
                                if not account in accounts:
                                        accounts.append(account)