If you are attempting to connect to a server, but the connection stalls and you get stuck at the authentication window (the Cancel button doesn’t do anything), quitting the NetAuthAgent process will cancel the connection. This process can be found using the Activity Monitor utility.