Java应用中针对LDAP的基于形式的身份验证的效率
我用 Java 构建了几个在 Weblogic 12C 上运行的应用程序,并通过 OpenLDAP 服务器进行身份验证。 OpenLDAP 身份验证器是在 Weblogic 安全领域中定义的。页面/URL 通过基于角色的授权来保护。设置类似于
然而,这样的设置有效吗?当然,登录时,将向 LDAP 服务器发送调用以验证用户身份。但是,如果我在 JSP 页面和 servlet 中广泛使用 if(request.isUserInRole("Member_admin")){
,是否每次都会发送一个调用,或者是否缓存结果?如果每个都触发一个调用,那么当应用程序处于负载状态时,速度会大大减慢。
I built a couple of apps in Java that run on Weblogic 12C with authentication from an OpenLDAP server. The OpenLDAP authenticator is defined in Weblogic security realm. Pages / URL's are secured by role-based authorization. The setup is similar to that given here.
However, is such a setup efficient? At login, a call would be sent to the LDAP server to authenticate users, of course. But if I use if(request.isUserInRole("Member_admin")){
extensively within JSP pages and servlets, would a call be sent each time, or are the results cached? If each triggers a call, that would slow things down tremendously when the app is under load.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论