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
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in KERBEROS
- Jndi connect to LDAP by GssApi KrbException: Server not found in Kerberos database (7)
- Kerberos Authentication for an API
- SASL GSSAPI: ldap_sasl_interactive_bind : Other error (80) no credentials supplied
- SQL Server Kerberos authentication
- How do I obtain a user's domain in nginx during authentication through AD with Kerberos?
- Kerberos ticket validity
- Unable to create Kafka Consumer using Kerberos Authentication System
- Does DataGrip Support Postgres Authentication with Kerberos?
- Setting up SOLR authentication kerebos plugin
- Authenticating and transferring files to the shared drive using Kerberos auth via SMB in Python
- Resolving Kerberos vs NTLM Authentication Issue in Cross-Domain SQL Server Connection
- Git clone failed with Krb5LoginModule error - JNA Library
- SPNEGO/GSS-API Golang packages for Kerberos authentication on MacOS
- VBA MSXML2.ServerXMLHTTP60 Web Request with Kerberos Authentication
- Deserializing a Kerberos Token
Related Questions in GSSAPI
- Jndi connect to LDAP by GssApi KrbException: Server not found in Kerberos database (7)
- SASL GSSAPI: ldap_sasl_interactive_bind : Other error (80) no credentials supplied
- connecting to postgres using ODBC windows with gssencmode not working
- Kafka auth failed while implementing GSSAPI auth in Nodejs app
- Python3 LDAP3/GSSAPI authenticate Active Directory with negotiate token got from browser
- GSSAPI Negotiate authentication fails different domain DNS and Windows Active Directory
- LDAP SASL (Kerberos) is successful but I can't perform ldap_search_s
- Erlang SASL GSSAPI error: Cannot contact any KDC for realm
- Datagrip | GSSAPI Initiate Failed when trying to connect to impala
- Using Vert.x package io.vertx.ext.auth.kerberos.KerberosOptions is not permitted as it's no longer available
- Is it possible to get Kerberos logging using gssapi inside secure context?
- ImportError: GSSAPIProxy requires the Python gssapi library
- Kerberos SSO with Apache and Zammad not working
- Authenticate against a remote system in Eclipse using GSSAPI
- How to connect to Postgres from Spring Boot using GSS API?
Related Questions in KDC
- Synchronization between two MIT KDC does not work
- Accessing Kerberos NFS filer from kubernetes pod
- How do you verify a SPNEGO token once it's generated in integration testing
- Volume/Day on a Kafka Topic
- What should we use as a "cname" or "principal" when requesting a ticket from a Windows KDC with AltSecurityIdentities enabled
- Kerberos - How are timeout and number of retries configuration parameters set?
- kadmind fails to start
- How to communicate with two different KDC servers from single Java client program using Java GSS-API and Kerberos 5?
- KDC validation from TGS-REP
- IWA doesn't work with WSO2 Identity-Server(wso2is-km-5.9.0)
- KDC sever not found in kerberos database
- ASP.NET Core Web API with Kerberos Ticket forwarding
- Cloudera node /etc/krb5.conf replaced at every reboot
- kerberos config single kdc with multiple domains
- Need to install MIT KDC in All hadoop Nodes in the cluster For Kerberos Authentication?
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 # Hahtags
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);