42108d1 ipaserver/dcerpc: catch the case of insuffient permissions when establishing trust

1 file Authored by abbra 10 years ago, Committed by mkosek 10 years ago,
    ipaserver/dcerpc: catch the case of insuffient permissions when establishing trust
    
    We attempt to delete the trust that might exist already. If there are not enough
    privileges to do so, we wouldn't be able to create trust at the next step and it will fail.
    However, failure to create trust will be due to the name collision as we already had
    the trust with the same name before. Thus, raise access denied exception here
    to properly indicate wrong access level instead of returning NT_STATUS_OBJECT_NAME_COLLISION.
    
    https://fedorahosted.org/freeipa/ticket/4202
    
    Reviewed-By: Martin Kosek <mkosek@redhat.com>
    
        
file modified
+5 -2