Added support for authentication and Unix sockets