mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
tests: Add LDAP URI to ldappasswd explicitly
Tests should always rely on api.env.* values when possible.
Without this running the tests remotely can result in errors such
as ldap{search,modify,passwd} attempting to connect to the
wrong URI and failing.
https://fedorahosted.org/freeipa/ticket/6622
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Tomas Krizek
parent
7a3da27816
commit
53abf0105b
@@ -1326,9 +1326,10 @@ def ldappasswd_user_change(user, oldpw, newpw, master):
|
||||
basedn = master.domain.basedn
|
||||
|
||||
userdn = "uid={},{},{}".format(user, container_user, basedn)
|
||||
master_ldap_uri = "ldap://{}".format(master.external_hostname)
|
||||
|
||||
args = [paths.LDAPPASSWD, '-D', userdn, '-w', oldpw, '-a', oldpw,
|
||||
'-s', newpw, '-x']
|
||||
'-s', newpw, '-x', '-H', master_ldap_uri]
|
||||
master.run_command(args)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user