我有一个使用外部 LDAP 作为提供者进行身份验证的 weblogic 服务器。我需要在 LDAP 存储库中恢复与特定用户关联的组。
登录使用标准 java 表示法:
<form method="POST" action="j_security_check">
<p>Username: <input type="text" name="j_username"/></p>
<p>Password: <input type="password" name="j_password"/></p>
<input type="submit" value="Login"/>
</form>
登录后,我可以使用以下方法恢复主体: <%= request.getUserPrincipal() %>
但我现在需要的是从 LDAP 中恢复此主体的所有关联组?可能吗?
[]s