Authenticate on LDAP with current user in JNDI/Java(使用 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.
这篇关于使用 JNDI/Java 中的当前用户在 LDAP 上进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 JNDI/Java 中的当前用户在 LDAP 上进行身份验证
基础教程推荐
- 修改 void 函数的输入参数,然后读取 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- Struts2 URL 无法访问 2022-01-01
