7e1b55
From 4785a90946ec694ccc082f062b2181b23c7099e3 Mon Sep 17 00:00:00 2001
7e1b55
From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= <fcami@redhat.com>
7e1b55
Date: Thu, 2 Sep 2021 16:17:01 +0200
7e1b55
Subject: [PATCH] subid: subid-match: display the owner's ID not DN
7e1b55
MIME-Version: 1.0
7e1b55
Content-Type: text/plain; charset=UTF-8
7e1b55
Content-Transfer-Encoding: 8bit
7e1b55
7e1b55
Previously, the subid-match command would output the full
7e1b55
DN of the owner of the matched range.
7e1b55
With this change, the UID of the owner is displayed, just like
7e1b55
for other subid- commands.
7e1b55
7e1b55
Fixes: https://github.com/freeipa/freeipa/pull/6001
7e1b55
Signed-off-by: François Cami <fcami@redhat.com>
7e1b55
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
7e1b55
---
7e1b55
 ipaserver/plugins/subid.py | 1 +
7e1b55
 1 file changed, 1 insertion(+)
7e1b55
7e1b55
diff --git a/ipaserver/plugins/subid.py b/ipaserver/plugins/subid.py
7e1b55
index 440f24ee627f0736100f63026158c564b04520c2..132c85c7f198217ba70f2332306ee2550be86035 100644
7e1b55
--- a/ipaserver/plugins/subid.py
7e1b55
+++ b/ipaserver/plugins/subid.py
7e1b55
@@ -524,6 +524,7 @@ class subid_match(subid_find):
7e1b55
         osubuid = options["ipasubuidnumber"]
7e1b55
         new_entries = []
7e1b55
         for entry in entries:
7e1b55
+            self.obj.convert_owner(entry, options)
7e1b55
             esubuid = int(entry.single_value["ipasubuidnumber"])
7e1b55
             esubcount = int(entry.single_value["ipasubuidcount"])
7e1b55
             minsubuid = esubuid
7e1b55
-- 
7e1b55
2.31.1
7e1b55