Remove redundant "if use ldap" check.