Results 1 to 2 of 2

Thread: Combine pre-authentication with LDAP for user details and authorities

Threaded View

  1. #1

    Default Combine pre-authentication with LDAP for user details and authorities

    I was wondering if I can combine pre-authentication with LDAP for user details and authorities. I assume yes because Spring Security is prepared to handle a myriad of security infrastructures.

    Our setup is IIS -> Tomat -> Spring Security (SS). Hence, once the request reaches SS it has its remoteUser and principal set - SS considers it pre-authenticated. However, I need an LDAP lookup (bind with a system account) for
    • user details attributes
    • group memberships (Active Directory) transformed to SS authorities


    Pre-authentication is pretty straight-forward.
    Code:
    ...
        <security:custom-filter position="PRE_AUTH_FILTER" ref="preAutenticatedProcessingFilter" />
      </security:http>
    
      <!-- Security Filter for J2EE (ie. getPrincipal) -->
      <bean id="preAutenticatedProcessingFilter" class="org.springframework.security.web.authentication.preauth.j2ee.J2eePreAuthenticatedProcessingFilter">
        <!-- property is not used in class but in AbstractPreAuthenticatedProcessingFilter super class -->
        <property name="authenticationManager" ref="authenticationManager" />
      </bean>
    ...
    However, I'm not quite sure how to configure LDAP - based on http://static.springsource.org/sprin...ence/ldap.html - because I need no password comparison or the like as the user is pre-authenticated.
    Last edited by marcelstoer; Oct 14th, 2011 at 02:28 PM.
    Marcel Stör, http://www.frightanic.com
    Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
    O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •