验证对LDAP与JNDI / Java的当前用户 [英] Authenticate on LDAP with current user in JNDI/Java
问题描述
我想我会找到更多关于这个话题,但我没有。
I thought I'd find more about this topic but I didn't.
我必须写一个Java应用程序,检查该OU中的特定用户的一部分。
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.
这篇关于验证对LDAP与JNDI / Java的当前用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!