// TODO CONFIGURATION
//"cn={0},OU=WCT users,DC=webcurator,DC=org",
//"cn={0},OU=WCT users,DC=webcurator,DC=org"
@Bean
    public ListFactoryBean userDnList() {
        ListFactoryBean bean = new ListFactoryBean();
        bean.setTargetListClass(ArrayList.class);
        // TODO Add values to this list to allow more distinguished name patterns.
        //      If preferable, ldap.dn can be removed when there is more than one value to avoid confusion.
        List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}",
                "cn={0},OU=WCT users,DC=webcurator,DC=org") //,
                // TODO CONFIGURATION
                //"cn={0},OU=WCT users,DC=webcurator,DC=org",
                //"cn={0},OU=WCT users,DC=webcurator,DC=org"
        );
        bean.setSourceList(sourceList);
        return bean;
    }
List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}",
"cn={0},OU=WCT users,DC=webcurator,DC=org") //,
// TODO CONFIGURATION
//"cn={0},OU=WCT users,DC=webcurator,DC=org",
//"cn={0},OU=WCT users,DC=webcurator,DC=org"
);
bean.setSourceList(sourceList);
@Bean
public ListFactoryBean userDnList() {
ListFactoryBean bean = new ListFactoryBean();
bean.setTargetListClass(ArrayList.class);
// TODO Add values to this list to allow more distinguished name patterns.
// If preferable, ldap.dn can be removed when there is more than one value to avoid confusion.
List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}",
"cn={0},OU=WCT users,DC=webcurator,DC=org") //,
// TODO CONFIGURATION
//"cn={0},OU=WCT users,DC=webcurator,DC=org",
//"cn={0},OU=WCT users,DC=webcurator,DC=org"
);
bean.setSourceList(sourceList);
return bean;
}
@Bean
public ListFactoryBean userDnList() {
ListFactoryBean bean = new ListFactoryBean();
bean.setTargetListClass(ArrayList.class);
// TODO Add values to this list to allow more distinguished name patterns.
// If preferable, ldap.dn can be removed when there is more than one value to avoid confusion.
List<String> sourceList = new ArrayList<String>(Arrays.asList("${ldap.dn}",
"cn={0},OU=WCT users,DC=webcurator,DC=org") //,
// TODO CONFIGURATION
//"cn={0},OU=WCT users,DC=webcurator,DC=org",
//"cn={0},OU=WCT users,DC=webcurator,DC=org"
);
bean.setSourceList(sourceList);
return bean;
}