minor fixes for PAM and LDAP authentication plugins
added ExternalAuth plugin for authenticating using external programs