Examples of searchForSingleAttributeValues()


Examples of org.springframework.security.ldap.SpringSecurityLdapTemplate.searchForSingleAttributeValues()

        }
        SpringSecurityLdapTemplate authTemplate;

        authTemplate = (SpringSecurityLdapTemplate) LDAPUtils
                .getLdapTemplateInContext(ctx, ldapTemplate);
        Set<String> userRoles = authTemplate.searchForSingleAttributeValues(
                getGroupSearchBase(), groupSearchFilter, new String[] { userDn,
                        username }, groupRoleAttribute);

        if (logger.isDebugEnabled()) {
            logger.debug("Roles from search: " + userRoles);
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.