Package org.springframework.security.ldap.userdetails

Examples of org.springframework.security.ldap.userdetails.PersonContextMapper


                .ldapAuthentication()
                    .groupRoleAttribute("cn") // ldap-authentication-provider@group-role-attribute
                    .groupSearchBase("ou=groups") // ldap-authentication-provider@group-search-base
                    .groupSearchFilter("(member={0})") // ldap-authentication-provider@group-search-filter
                    .rolePrefix("PREFIX_") // ldap-authentication-provider@group-search-filter
                    .userDetailsContextMapper(new PersonContextMapper()) // ldap-authentication-provider@user-context-mapper-ref / ldap-authentication-provider@user-details-class
                    .userDnPatterns("uid={0},ou=people") // ldap-authentication-provider@user-dn-pattern
                    .userSearchBase("ou=users") // ldap-authentication-provider@user-dn-pattern
                    .userSearchFilter("(uid={0})") // ldap-authentication-provider@user-search-filter
                    // .contextSource(contextSource) // ldap-authentication-provider@server-ref
                    .contextSource()
View Full Code Here


        mgr.setUsernameMapper(new DefaultLdapUsernameToDnMapper("ou=test people","uid"));
        mgr.setGroupSearchBase("ou=testgroups");
        mgr.setGroupRoleAttributeName("cn");
        mgr.setGroupMemberAttributeName("member");
        mgr.setUserDetailsMapper(new PersonContextMapper());
    }
View Full Code Here

                .ldapAuthentication()
                    .groupRoleAttribute("cn") // ldap-authentication-provider@group-role-attribute
                    .groupSearchBase("ou=groups") // ldap-authentication-provider@group-search-base
                    .groupSearchFilter("(member={0})") // ldap-authentication-provider@group-search-filter
                    .rolePrefix("PREFIX_") // ldap-authentication-provider@group-search-filter
                    .userDetailsContextMapper(new PersonContextMapper()) // ldap-authentication-provider@user-context-mapper-ref / ldap-authentication-provider@user-details-class
                    .userDnPatterns("uid={0},ou=people") // ldap-authentication-provider@user-dn-pattern
                    .userSearchBase("ou=users") // ldap-authentication-provider@user-dn-pattern
                    .userSearchFilter("(uid={0})") // ldap-authentication-provider@user-search-filter
                    // .contextSource(contextSource) // ldap-authentication-provider@server-ref
                    .contextSource()
View Full Code Here

TOP

Related Classes of org.springframework.security.ldap.userdetails.PersonContextMapper

Copyright © 2018 www.massapicom. 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.