Code example for XmlBeanFactory

0
     
    private Map<String, ClassConfig> classMap;
    private String user_dn;
    private String user_sdn;
    private ClassPathResource cpf = new ClassPathResource("ldap-auth.xml");
    private XmlBeanFactory bf = new XmlBeanFactory(cpf);
 
    @Before 
    public void setUp() throws GeneralSecurityException {
         
        host = "127.0.0.1";
        port = 389;
        config = new MossoAuthConfig(host, port);
 
        dn = "ou=Users,o=rackspace";
        sdn = "cn";
        oClass = "(objectClass=*)";
        memberField = "groupMembership";
        userQuery = "cn=%s";