fix travis ci issue when no LDAP server