Search:

Type: Posts; User: stimpy; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.04 seconds.

  1. Replies
    0
    Views
    162

    Spring MVC and serving protected resources

    I have a pretty standard Spring 3.0.7 web app

    The structure is like this

    WebContent/
    ------resources/
    ------------myStaticContent/
    ------WEB-INF/
    ------------views/...
  2. Replies
    2
    Views
    302

    Still have not had any luck finding concrete...

    Still have not had any luck finding concrete examples .

    My requirement my be more uncommon but it would be nice to know if the ability to update or write users roles/Authorities is part of...
  3. Replies
    2
    Views
    302

    Updating AD using Spring security

    We use Spring Security to authenticate and authorize our users and it works very well.

    However we now may have to change a users roles and their corresponding group membership.

    This means...
  4. I think you could use whatever you choose to...

    I think you could use whatever you choose to program : )

    I have not used container security ( i.e. web sphere ) in conjunction with spring so I can't say if it would work .

    Spring security is...
  5. Replies
    5
    Views
    1,660

    jr glad to hear that you got it fixed. If...

    jr

    glad to hear that you got it fixed.

    If possible could you post your fix ? I have been unable to get a fix working .

    thanks
  6. OK in my case the access denied config is its...

    OK

    in my case the access denied config is its own line not a part of the http element


    <access-denied-handler errorPage="/accessDenied" />

    When you debug do you see a request for that page...
  7. Replies
    5
    Views
    1,660

    jr Just updating ... I have so far been...

    jr

    Just updating ... I have so far been unable to handle access denied better.

    in my case (x509 with LDAP authorities) I implemented my own FilterBasedLDAPUserSearch and UserDetailsServices...
  8. Replies
    2
    Views
    394

    Have you considered assigning roles based on...

    Have you considered assigning roles based on authentication source ? ie ROLE_FROM_CAS and ROLE_FROM_DB...

    Spring makes it very easy to then test for those roles ...
  9. Sword When you say not working what do you...

    Sword

    When you say not working what do you mean ? What DOES happen ? a 403 page or ?

    I use the configuration you posted and it does work ..however Spring's use of accessDeneid has a few...
  10. First I suggest you read the faq here ...

    First I suggest you read the faq here

    http://static.springsource.org/spring-security/site/faq.html



    Relative to what ? If the CAS is not secure then there are likely larger problems.
    ...
  11. Stieuma I would agree with Marcel . I just...

    Stieuma

    I would agree with Marcel . I just implemented x509 certs with LDAP authorities.

    I am not sure what the x509 certificate is supposed to accomplish without SSL/TLS negotiation. As far I...
  12. Jason I took a look at my running code . I...

    Jason

    I took a look at my running code .

    I implemented LdapAuthoritiesPopulator to setup my initial authorities. It would seem that you might also be able to set the authorities to a a new...
  13. I learned alot from Peter Mularien's book. Worth...

    I learned alot from Peter Mularien's book. Worth every penny

    http://forum.springsource.org/showthread.php?90236-Spring-Security-Book-Now-Available
  14. Jason I have not tried it but I use a custom...

    Jason

    I have not tried it but I use a custom authorities provisioner to handle my roles and i think it could handle this .

    There may be some protections in place to prevent inaccurate session...
  15. Replies
    5
    Views
    1,660

    jr see my thread here...

    jr

    see my thread here http://forum.springsource.org/showthread.php?115235-x509-with-separate-userdetails-and-access-denied-handler

    I suspect you are seeing what I am seeing .

    In preauth...
  16. digging deeper I created my own userDetails and...

    digging deeper I created my own userDetails and LdapfilterSearch implementations.

    I was attempting to change the UsernNotFound exception to something I could actually use.

    However it appears...
  17. Ok so coming back to this ... I can see that...

    Ok so coming back to this ...

    I can see that bad user credentials ( where the user is not found but has a valid x509) throws a UserNameNotFoundException from...
  18. ravkrr I suspect your paths do not match. ...

    ravkrr

    I suspect your paths do not match.

    src/main/webapp may be where you put it but where does it end up when you build ?

    Your war or root folder should contain a meta-inf , a Web-in and...
  19. I did some more testing and had some disturbing...

    I did some more testing and had some disturbing results.

    using only


    <access-denied-handler error-page="/myController">

    I tested both use cases . In cases where the user has a valid cert...
  20. x509 with separate userdetails and access-denied-handler

    I am using x509 client certs with spring security 3.0.7.

    I authenticate with the client certs and then get user authorities from a ldap server.

    This all works correctly so now i need to deal...
  21. OK so it seems the best (?) path to using the...

    OK so it seems the best (?) path to using the memberOf in AD is to write my own ldapAuthoritiesPopulator.

    so given the config below ( which all works correctly minus the mapping of memberOf to...
  22. Ok I have found where my problem is in...

    Ok I have found where my problem is

    in SpringSecurityLdapTemplate.searchForSingleAttributeValues

    Specifically it accepts four arguments. groupSearchBase,groupSearchFilter,groupRoleAttribute...
  23. Mo I agree that configuring spring security to...

    Mo

    I agree that configuring spring security to work with a AD LDS is troublesome.

    In part this seems to be due to the fact that getting successful results from the search,bind and authorities...
  24. Hi mo I would suggest that you upgrade to...

    Hi mo


    I would suggest that you upgrade to 3.0.7 just to rule our an issues.

    The way I read your debug log is that the string used to bind for authentication is not a match.

    I am not at...
  25. Mo I think we might have the same problem . ...

    Mo

    I think we might have the same problem .

    My AD/LDS server is a 2008 R2 and not a 2003 ( which returns vastly different results FYI ) ..

    I put a break point in...
Results 1 to 25 of 64
Page 1 of 3 1 2 3