【问题标题】:how to get Spring LDAP user details on jsp without using scriplets如何在不使用脚本的情况下在 jsp 上获取 Spring LDAP 用户详细信息
【发布时间】:2013-05-11 07:24:33
【问题描述】:

我已经使用 spring 使用了 LDAP 身份验证,它正在工作。

现在我想在不使用脚本的情况下在 jsp 页面上显示经过身份验证的用户的详细信息。应从 http 会话中选择用户详细信息。但是我没有正确的方法继续前进。

如果有人知道解决方案,请与我分享。

谢谢

【问题讨论】:

    标签: spring jsp ldap jstl


    【解决方案1】:

    使用 Spring 标签库

    http://static.springsource.org/spring-security/site/docs/3.0.x/reference/taglibs.html

    然后您可以使用

    访问用户主体(包含 DN、组等)
    <sec:authentication property="principal.<whatever>" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-30
      • 2011-08-21
      • 2022-08-05
      • 1970-01-01
      • 2019-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多