added LDAP auth. Thanks jplana@tuenti.com for the patch.