问题描述
我以为我会找到有关此主题的更多信息,但我没有.
I thought I'd find more about this topic but I didn't.
我必须编写一个 java 应用程序来检查特定用户属于哪个用户.
I have to write a java application that checks which ou a specific user is part of.
但是要通过服务器进行身份验证,我不能要求用户名和密码,也不能将其存储在源(或其他文件)中.
But to authenticate with the server I can't ask for username and password and also can't store it in the source (or some other file).
JNDI 和 Java 有没有办法对当前登录的用户进行身份验证?
Is there a way with JNDI and Java to authenticate with the user who is currently logged in?
推荐答案
由于似乎没有真正的解决方案,我现在在脚本/工具的开头请求登录信息并在需要时使用它.
Since it seems that there is no real solution to this, I now go with requesting Login information at the start of the script/tool and using it when needed.
这篇关于使用 JNDI/Java 中的当前用户在 LDAP 上进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)