From f1ed46eb93bcb5bc87783dc3daad72faffc7c6af Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 17 May 2023 14:48:39 -0400 Subject: [PATCH] Differentiate location meaning between host and server A host uses Location (nshostlocation) as an optional hint where a host may phsyically be located (e.g. Lab 2). This will result in an attribute in the host entry like: nshostlocation: Lab 2 A server uses location (ipalocation) to identify which DNS location the server is part of (e.g. prague). This will result in an attribute in the server entry like: ipalocation: idnsname=prague,cn=locations,cn=etc,dc=example,dc=test They are completely different animals. https://pagure.io/freeipa/issue/9317 Signed-off-by: Rob Crittenden Reviewed-By: Rafael Guterres Jeffman --- ipaserver/plugins/host.py | 2 +- ipaserver/plugins/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaserver/plugins/host.py b/ipaserver/plugins/host.py index b8d97d3d8..3ef510edc 100644 --- a/ipaserver/plugins/host.py +++ b/ipaserver/plugins/host.py @@ -500,7 +500,7 @@ class host(LDAPObject): Str('nshostlocation?', cli_name='location', label=_('Location'), - doc=_('Host location (e.g. "Lab 2")'), + doc=_('Host physical location hint (e.g. "Lab 2")'), ), Str('nshardwareplatform?', cli_name='platform', diff --git a/ipaserver/plugins/server.py b/ipaserver/plugins/server.py index b51e5015f..01d16b893 100644 --- a/ipaserver/plugins/server.py +++ b/ipaserver/plugins/server.py @@ -130,7 +130,7 @@ class server(LDAPObject): 'ipalocation_location?', cli_name='location', label=_('Location'), - doc=_('Server location'), + doc=_('Server DNS location'), only_relative=True, flags={'no_search'}, ),