2934160 Refactor the interactive prompt logic in idrange_add

1 file Authored by tbabej 10 years ago, Committed by mkosek 10 years ago,
    Refactor the interactive prompt logic in idrange_add
    
    Make the interactive prompts interpret the following logic:
    
    - AD range (dom-sid/dom-name set):
          require RID base if not set
    
    - local range(dom-sid/dom-name not set):
        a) server with adtrust support:
               require both RID base and secondary RID base
        b) server without adtrust support:
               if any of RID base, secondary RID base set,
               require both of them
    
    https://fedorahosted.org/freeipa/ticket/3786
    
        
file modified
+34 -27