compat-manage: behave the same for all users

Due to LDAP connection refactoring, compat-manage would have behaved
differently for root and for other users even though it requires
the directory manager password. This is caused by it trying to do
external bind when it does not have the DIRMAN password which was
previously not supplied.

https://pagure.io/freeipa/issue/6821

Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
Stanislav Laznicka 2017-04-21 09:32:34 +02:00 committed by Martin Basti
parent 9b443b908f
commit 0c0af8cf7a

View File

@ -105,7 +105,7 @@ def main():
debug=options.debug,
confdir=paths.ETC_IPA)
api.finalize()
api.Backend.ldap2.connect()
api.Backend.ldap2.connect(bind_pw=dirman_password)
if args[0] == "status":
entry = None