Examples of JtracLdapAuthenticationProvider


Examples of info.jtrac.acegi.JtracLdapAuthenticationProvider

   
    public Object getObject() throws Exception {       
        List providers = new ArrayList();
        if(ldapUrl.length() > 0) {
            logger.info("switching on ldap authentication provider");
            JtracLdapAuthenticationProvider ldapProvider = new JtracLdapAuthenticationProvider();
            ldapProvider.setLdapUrl(ldapUrl);           
            ldapProvider.setActiveDirectoryDomain(activeDirectoryDomain);       
            ldapProvider.setSearchBase(searchBase);
            ldapProvider.setJtrac(jtrac);
            // **IMPORTANT!** we have to call this one time init ourselves
            // as we are manually doing the factory stuff not Spring
            ldapProvider.afterPropertiesSet();
            // this is added at the top of the list or providers, and will fall back to local database
            providers.add(ldapProvider);
        } else {
            logger.info("not using ldap authentication");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.