Created external auth script for ejabberd