使用 JNDI/Java 中的当前用户在 LDAP 上进行身份验证
我以为我会找到有关此主题的更多信息,但我没有.
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.
相关文章