Fix RUV search scope in ipa-replica-manage

The search had an incorrect scope and therefore it didn't find any RUV.

This issue prevented removing of replica.

https://fedorahosted.org/freeipa/ticket/3876
This commit is contained in:
Petr Vobornik
2013-09-03 11:01:48 +02:00
committed by Petr Viktorin
parent 7959f3ee1e
commit f312d72510
2 changed files with 11 additions and 1 deletions

View File

@@ -348,7 +348,7 @@ def get_ruv(realm, host, dirman_passwd, nolookup=False):
search_filter = '(&(nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff)(objectclass=nstombstone))'
try:
entries = thisrepl.conn.get_entries(
api.env.basedn, thisrepl.conn.SCOPE_ONELEVEL, search_filter,
api.env.basedn, thisrepl.conn.SCOPE_SUBTREE, search_filter,
['nsds50ruv'])
except errors.NotFound:
print "No RUV records found."