pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0093-compat-manage-behave-the-same-for-all-users.patch

483b06
From 03b605a70c8f5a6def7a572ceb302051934c78e7 Mon Sep 17 00:00:00 2001
483b06
From: Stanislav Laznicka <slaznick@redhat.com>
483b06
Date: Fri, 21 Apr 2017 09:32:34 +0200
483b06
Subject: [PATCH] compat-manage: behave the same for all users
483b06
483b06
Due to LDAP connection refactoring, compat-manage would have behaved
483b06
differently for root and for other users even though it requires
483b06
the directory manager password. This is caused by it trying to do
483b06
external bind when it does not have the DIRMAN password which was
483b06
previously not supplied.
483b06
483b06
https://pagure.io/freeipa/issue/6821
483b06
483b06
Reviewed-By: Martin Basti <mbasti@redhat.com>
483b06
---
483b06
 install/tools/ipa-compat-manage | 2 +-
483b06
 1 file changed, 1 insertion(+), 1 deletion(-)
483b06
483b06
diff --git a/install/tools/ipa-compat-manage b/install/tools/ipa-compat-manage
483b06
index a29a92fabd653bb983778420cca0983048ee39ef..6dd259d2aad870e575093d6732157de743502ac2 100755
483b06
--- a/install/tools/ipa-compat-manage
483b06
+++ b/install/tools/ipa-compat-manage
483b06
@@ -105,7 +105,7 @@ def main():
483b06
                   debug=options.debug,
483b06
                   confdir=paths.ETC_IPA)
483b06
     api.finalize()
483b06
-    api.Backend.ldap2.connect()
483b06
+    api.Backend.ldap2.connect(bind_pw=dirman_password)
483b06
 
483b06
     if args[0] == "status":
483b06
         entry = None
483b06
-- 
483b06
2.12.2
483b06