Home > other >  2 if a Java thread can be used as two different Kerberos user authentication (in the same process)?
2 if a Java thread can be used as two different Kerberos user authentication (in the same process)?

Time:11-21


2 a Java thread (same process, the same machine) how to create your own Kerberos tickets?
My concern is that normally, once on the machine to create the Kerberos ticket, it will be used by all the other processes on the machine,
I'm going to use Java 's default Kerberos libraries, but I haven't started, so I'm open to any Suggestions (must be open source),
Through the Kerberos connected to http://server as thread1 -- user1 password1 and thread2 - user2 - a small password2 Hello World will be very good!

Context: I want to write a load test tool:

My tools will start 100 threads,
Each thread logging in different Kerberos users,
Once logged in, each thread start sending requests,

Do load test, multiple users is very important, because each user has its own cache Kerberos cannot be disabled/bypass, because its purpose is to test the Kerberos,






CodePudding user response:


Authentication to GSS context, rather than the JVM, as long as you are willing, you can have as much as possible the context, as many tickets and certification,

CodePudding user response:

Bosses, solved?

CodePudding user response:

reference 1st floor response:
authentication to GSS context, rather than the JVM, as long as you are willing, you can have as much as possible the context, as many tickets and certification,

Bosses, a process I have used two different kerbers certification of kafka, because set the environment variable, cause there is only one success, how to solve this
  • Related