andykimpe / rpms / 389-ds-base

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

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

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