add index_no to validate
fix ldap bug