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

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