Added hook for authentication from external sources like LDAP.