andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

Blame SOURCES/0012-Issue-4959-Invalid-etc-hosts-setup-can-cause-isLocal.patch

9f2552
From 2c6653edef793d46815e6df607e55d68e14fe232 Mon Sep 17 00:00:00 2001
9f2552
From: spike <spike@fedoraproject.org>
9f2552
Date: Fri, 5 Nov 2021 13:56:41 +0100
9f2552
Subject: [PATCH 12/12] Issue 4959 - Invalid /etc/hosts setup can cause
9f2552
 isLocalHost to fail.
9f2552
9f2552
Description: Use local_simple_allocate in dsctl so that isLocal is always set properly
9f2552
9f2552
Relates: https://github.com/389ds/389-ds-base/issues/4959
9f2552
9f2552
Reviewed by: @droideck (Thanks!)
9f2552
---
9f2552
 src/lib389/cli/dsctl | 2 +-
9f2552
 1 file changed, 1 insertion(+), 1 deletion(-)
9f2552
9f2552
diff --git a/src/lib389/cli/dsctl b/src/lib389/cli/dsctl
9f2552
index b6c42b5cc..d2ea6cd29 100755
9f2552
--- a/src/lib389/cli/dsctl
9f2552
+++ b/src/lib389/cli/dsctl
9f2552
@@ -135,7 +135,7 @@ if __name__ == '__main__':
9f2552
         log.error("Unable to access instance information. Are you running as the correct user? (usually dirsrv or root)")
9f2552
         sys.exit(1)
9f2552
 
9f2552
-    inst.allocate(insts[0])
9f2552
+    inst.local_simple_allocate(insts[0]['server-id'])
9f2552
     log.debug('Instance allocated')
9f2552
 
9f2552
     try:
9f2552
-- 
9f2552
2.31.1
9f2552