[英]Can 2 Java threads authenticate as two different Kerberos users (in the same process)?
How can 2 Java threads (of the same process, same machine) each create their own Kerberos ticket? 2个Java线程(同一个进程,同一台机器)如何创建自己的Kerberos票证?
My concern is that usually, once a Kerberos ticket is created on a machine, it will be used by all other processes on the machine. 我担心的是,通常,一旦在机器上创建了Kerberos票证,它就会被机器上的所有其他进程使用。
I am planning to use Java's default Kerberos libraries , but I haven't started yet so I am open to any suggestion (must be open-source). 我打算使用Java的默认Kerberos库 ,但我还没有开始,所以我愿意接受任何建议(必须是开源的)。
A small hello world that connects to http://server
via Kerberos as thread1-user1-password1 and thread2-user2-password2 would be awesome! 一个小的hello world通过Kerberos作为thread1-user1-password1和thread2-user2-password2连接到
http://server
会很棒!
Context: I want to write a load-testing tool: 上下文:我想编写一个负载测试工具:
Doing the load-test as several users is important, as each user has its own cache etc. 作为多个用户进行负载测试很重要,因为每个用户都有自己的缓存等。
Kerberos can not be disabled/circumvented, because the purpose is also to test Kerberos. 无法禁用/规避Kerberos,因为其目的也是测试Kerberos。
The authentication belongs to the GSS context, not the JVM. 身份验证属于GSS上下文,而不是JVM。 You can have as many contexts as you like, ergo as many tickets and authentications as you like.
您可以拥有任意数量的上下文,您可以随心所欲地获得许多票证和身份验证。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.