From 01f23216ab5b383710dad086a01bb73b2da383d1 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mon, 17 Mar 2025 16:21:23 +0100 Subject: [PATCH] idrange: use minvalue=0 for baserid and secondarybaserid With the support of 32 bit idrange, the minvalue was set to 1 but this introduces a regression in the command ipa trust-add as the range for AD trust is added with baserid=0 Lower the minvalue to 0 Fixes: https://pagure.io/freeipa/issue/9765 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Alexander Bokovoy --- ipaserver/plugins/idrange.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaserver/plugins/idrange.py b/ipaserver/plugins/idrange.py index 26a3bb666273013912e80d49b56031869157375a..d155fb46da8240449a077d35e86a91ee9f95c132 100644 --- a/ipaserver/plugins/idrange.py +++ b/ipaserver/plugins/idrange.py @@ -235,13 +235,13 @@ class idrange(LDAPObject): Int('ipabaserid?', cli_name='rid_base', label=_('First RID of the corresponding RID range'), - minvalue=1, + minvalue=0, maxvalue=Int.MAX_UINT32 ), Int('ipasecondarybaserid?', cli_name='secondary_rid_base', label=_('First RID of the secondary RID range'), - minvalue=1, + minvalue=0, maxvalue=Int.MAX_UINT32 ), Str('ipanttrusteddomainsid?', -- 2.48.1