1110ac9 util: add find_subdomain_by_sid()

2 files Authored by pbrezina 10 years ago, Committed by jhrozek 10 years ago,
    util: add find_subdomain_by_sid()
    
    This function takes domain SID (doesn't have the last component)
    or object SID (have all components) and returns subdomain.
    
    The subdomain is found by comparing domain->domainid with the SID.
    
    E.g.
    domain SID: S-1-5-21-3940105347-3434501867-2690409756
    object SID: S-1-5-21-3940105347-3434501867-2690409756-513
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/2034
    
        
file modified
+33 -0
file modified
+2 -0