I have got the answers for setting up LdapContextSource and LdapTemplate without XML configurations from the SO question Best practice for configuring Spring LdapTemplate via annotations instead of XML?
What should be the annotation way for the below xml - automatically creating repository beans based on interfaces?
<ldap:repositories base-package="org.springframework.ldap.samples.useradmin.domain" />