58569fe sdap_save_group: try to determine domain by SID

1 file Authored by pbrezina 10 years ago, Committed by jhrozek 10 years ago,
    sdap_save_group: try to determine domain by SID
    
    GC contains objects from both parent domain and subdomain.
    
    Lets say we have group with UID 5000 that belongs to a subdomain and
    overlapping search bases dc=ad,dc=pb and dc=sub,dc=ad,dc=pb. Now
    we call 'getent group 5000' and this request goes through data
    provider, searching in parent domain first. Even though this
    group does not belong to this domain it is found and stored as
    ad.pb group.
    
    With this patch we look at group's SID and put it into correct domain.