验证对LDAP与JNDI / Java的当前用户用户、LDAP、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...

我想我会找到更多关于这个话题,但我没有。

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.

阅读全文

相关推荐

最新文章