I am using Java GSS-API with Kerberos for secure Authentication. I implemented sample Server and sample Client programs, and Client is able to successfully authenticate and get the service from Server. For these sample programs I passed the KDC address through Java System Property (java.security.krb5.kdc). Now the problem is that I want to connect to two different KDC Servers from single Client program to access multiple services. Through system property we can pass only one KDC Server address. How can I connect to multiple KDC Servers from a single Client program?
How to communicate with two different KDC servers from single Java client program using Java GSS-API and Kerberos 5?
1.1k Views Asked by Prashanth Reddy At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in KERBEROS
- Windows client damage authorization header (Kerberos) => IIS 400 (Bad Request)
- Configure Kerberos auth for TFS 2013
- Single Sign-On in Windows Applications using AD login
- C# RestSharp library and Kerberos authentication
- Hiveserver2 Kerberos
- Passing Kerberos ticket as parameter in SOAP web service call
- Spring security kerberos validate token error
- Hadoop Kerberos security
- Authenticate scripts on HDFS using key.tab file
- Making my own Kerberos Authentication Ticket
- Using Java 8 S4U2Proxy - A good example needed
- Connect to HBase using tunnel
- Hive Server2 ACID transactions not working
- How to specify the TGT kerberos ticket cache in beeline
- Java GSSAPI Credentials with Active Directory
Related Questions in GSSAPI
- How to install GSSAPI Python module?
- Passing Kerberos ticket as parameter in SOAP web service call
- Java GSSAPI Credentials with Active Directory
- GSSAPI Defective Ticket
- Protocol for sending GSS Tokens
- How does SPN with Kerberos works
- GSSAPI: gss_export_name returns a blank
- Kerberos SSO implemented with Java
- Cross domain/realm authentication
- Exporting GSSCredential to byte array and vice versa
- how do i renew a kerberos service ticket using GSS API
- Configure gssapi to connect PostgreSQL server using AD
- Connecting to LDAPS with GSS and Channel Binding
- Not able to connect to DB in php with mariadb gssapi, authentication method unknown to client
- Is it possible to get Kerberos logging using gssapi inside secure context?
Related Questions in KDC
- Kerberos SPN gets cached on Windows Servers?
- Kerberos ticket is sent only when compatibilty mode in IE is turned on
- openldap + kerberos - unable to reach any KDC in realm
- How to set iteration count for a active directory account
- KERBEROS - restricting users from logging into specific hosts in realm
- Kerberos: Windows Server 2008 and Linux KDC Interoperation
- How to communicate with two different KDC servers from single Java client program using Java GSS-API and Kerberos 5?
- kadmind fails to start
- KDC has no support for encryption type (14)
- Start kdc in Dockerfile
- kdb5_util dump gives Server error
- Using Static Library in Xcode 4.6.x i.e. Koamtac iOS SDK Integration
- Configure encryption types allowed for Kerberos disabled
- How do you verify a SPNEGO token once it's generated in integration testing
- Accessing Kerberos NFS filer from kubernetes pod
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can specify multiple domain entries and corresponding KDCs using KRB5 config file.
Instead of setting each property separately, provide this file as a configuration to your program. This can be done using -
System.setProperty("java.security.krb5.conf", krb5ConfigFilePath);