Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8882975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:42:19+00:00 2026-06-14T20:42:19+00:00

I need to login using kerberos on a unix machine to call a URL

  • 0

I need to login using kerberos on a unix machine to call a URL using a windows network. I can use the useTicketCache=true in windows and everything works fine. How do I do this from a unix box and just pass in the user/pass to my java program instead of using the ticket cache?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:42:21+00:00Added an answer on June 14, 2026 at 8:42 pm

    This is not the way you should go. The human itself should obtain the TGT on Windows logon. You access the TGT then ot obtain a service ticket from KDC.
    If your unix setup does not use winbind to perform auth, so you don’t have access to a prepopulated credential cache, you have three options:

    1. Use winbind to manage your unix users in AD
    2. Perform a unix kinit
    3. Pass a Username and/or PasswordCallback to new LoginContext.

    I would favor 1 or 2.

    Option two would work like this from Java:

    Runtime.exec("kinit " + upn);
    // Obtain the input stream of the forked process
    is.write(password);
    // Check exit code
    

    Now you have a native valid TGT in your credential cache. Java can pick this up now and request further service tickets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After i login using Facebook connect,I need to redirect user to particular URL.The below
I'm developing a windows store app using HTML and javascript. I need to login
I here want to call another website url, login into it, and use one
I need to secure my website without using the ASP.NET built in login controls
I need to ensure that the user login form for Drupal can not be
i have a secure login using .htaccess, and i need to know which user
I am using XCode4 for development. In my applicaion I need login to a
Hey guys, first off all sorry, i can't login using my yahoo provider. anyways
I need to know when tomcat accepts a login using realm authentication for a
There is a website I need to login using HttpRequest. The login form of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.