62be554 trust: make sure ID range is created for the child domain even if it exists

2 files Authored by abbra 3 years ago , Committed by mbabinsk 3 years ago ,
    trust: make sure ID range is created for the child domain even if it exists
    
    ID ranges for child domains of a forest trust were created incorrectly
    in FreeIPA 4.4.0 due to refactoring of -- if the domain was already
    existing, we never attempted to create the ID range for it.
    
    At the same time, when domain was missing, we attempted to add ID range
    and passed both forest root and the child domain names to add_range().
    However, add_range() only looks at the first positional argument which
    was the forest root name. That ID range always exists (it is created
    before child domains are processed).
    
    Modify the code to make sure child domain name is passed as the first
    positional argument. In addition, the oddjob helper should explicitly
    set context='server' so that idrange code will be able to see and use
    ipaserver/dcerpc.py helpers.
    
    Resolves: https://fedorahosted.org/freeipa/ticket/5738
    Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
    
        
file modified
+7 -3