ab7b33f SECRETS: Don't remove a container when it has children

1 file Authored by fidencio 4 years ago , Committed by jhrozek 4 years ago ,
    SECRETS: Don't remove a container when it has children
    
    Let's return and log an error in case the container to be removed has
    children.
    
    The approach taken introduced at least one new search in every delete
    operation. As far as I understand searching in the BASE scope is quite
    cheap and that's the reason I decided to just do the search in the
    ONELEVEL scope when the requested to be deleted dn is for sure a
    container.
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/3167
    
    Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
    
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    
        
file modified
+31 -2