Java could not get the TGT from cache in Linux client.

Dear friends,
I have set up the kerberos server and OpenLDAP in RHEL5.5. I also have a RHEL6 as a client.
I have ran my java program using jaas to query the openldap server from the linux client.
1) I can query the openldap server If I copy the client's keytab to the client machine and use the following configruation options
     principal=wpingli
useKeyTab=true
keyTab="/home/wpingli/ker/java/wpingli_new.keytab";
2) I also can query the openldap server If I am prompted to input the user/password.
This makes me believe that my enviroment is ok.
But I could not be sucessful if I run the java program after the kinit command.
klist wpingli
[wpingli@pli java]$ klist
Ticket cache: FILE:/tmp/krb5cc_500
Default principal: [email protected]
Valid starting Expires Service principal
10/20/11 16:18:06 10/21/11 16:18:02 krbtgt/[email protected]
jaas configuration
GssExampleSUN{
com.sun.security.auth.module.Krb5LoginModule required
client=true
debug=true
doNotPrompt=true
useTicketCache=true
ticketCache="/tmp/krb5cc_500";
Exception:
Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt true ticketCache is /tmp/krb5cc_500 isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
Principal is null
null credentials from Ticket Cache
*[Krb5LoginModule] authentication failed*
Unable to obtain Princpal Name for authentication
Authentication attempt failedjavax.security.auth.login.LoginException: Unable to obtain Princpal Name for authentication
Does anyone have idea on this problem?
Thanks,
Ricky

Dear friends,
I have set up the kerberos server and OpenLDAP in RHEL5.5. I also have a RHEL6 as a client.
I have ran my java program using jaas to query the openldap server from the linux client.
1) I can query the openldap server If I copy the client's keytab to the client machine and use the following configruation options
     principal=wpingli
useKeyTab=true
keyTab="/home/wpingli/ker/java/wpingli_new.keytab";
2) I also can query the openldap server If I am prompted to input the user/password.
This makes me believe that my enviroment is ok.
But I could not be sucessful if I run the java program after the kinit command.
klist wpingli
[wpingli@pli java]$ klist
Ticket cache: FILE:/tmp/krb5cc_500
Default principal: [email protected]
Valid starting Expires Service principal
10/20/11 16:18:06 10/21/11 16:18:02 krbtgt/[email protected]
jaas configuration
GssExampleSUN{
com.sun.security.auth.module.Krb5LoginModule required
client=true
debug=true
doNotPrompt=true
useTicketCache=true
ticketCache="/tmp/krb5cc_500";
Exception:
Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt true ticketCache is /tmp/krb5cc_500 isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
Acquire TGT from Cache
Principal is null
null credentials from Ticket Cache
*[Krb5LoginModule] authentication failed*
Unable to obtain Princpal Name for authentication
Authentication attempt failedjavax.security.auth.login.LoginException: Unable to obtain Princpal Name for authentication
Does anyone have idea on this problem?
Thanks,
Ricky

Similar Messages

  • HT201441 I have bought an used Iphone from a shop. then i put my account id in it. then it goes perfectly. After awhile i have done a reset all data and sitting then i could not get the Iphone started because it have been asked to put another email starti

    I have bought an used Iphone from a shop. then i put my account id in it. then it goes perfectly. After awhile i have done a reset all data and sitting then i could not get the Iphone started because it have been asked to put another email starting with u
    For contact [email protected]

    Sounds like the Activation Lock is still set to the previous owner. If you are unable to get that Apple ID and password that iPhone is totally useless to you.
    Take it back to the shop and demand your money back because they sold it to under false pretenses.
    Allan

  • Security Agent: Could not get the user record from OpenDirectory

    Hi,
    Two months ago I had to change my SSD due to a damage at the old one. In the Apple shop they installed OS X Lion with a image from their image-server.
    After that the Mac was quite slow in booting. With the old SSD (128 GB) booting takes 25 sec now it takes 75 sec.
    I tried different things to solve the problem without result. First I asked in the shop, then I googled the problem all with no real solution.
    Today now I searched in the log files. I found the following:
    09.02.12 11:03:07.861 SecurityAgent: Could not get the user record from OpenDirectory.
    09.02.12 11:03:07.861 SecurityAgent: Will sleep 3 seconds and try again (retryCount = 10)
    09.02.12 11:03:34.907 SecurityAgent: Could not get the user record from OpenDirectory.
    09.02.12 11:03:34.907 SecurityAgent: Will sleep 3 seconds and try again (retryCount = 1)
    09.02.12 11:03:34.907 SecurityAgent: Will sleep 3 seconds and try again (retryCount = 1)
    09.02.12 11:03:38.653 WindowServer: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    09.02.12 11:03:58.245 SecurityAgent: User info context values set for andi
    09.02.12 11:03:58.246 SecurityAgent: User info context values set for andi
    09.02.12 11:03:58.356 SecurityAgent: Login Window login proceeding
    09.02.12 11:03:58.356 SecurityAgent: Login Window login proceeding
    This operation takes 30 secs during the boot process. Can somebody help me, to solve this problem?
    Regards
    Andreas
    MacBook Pro, Mid 2009
    2.66 GHz Intel Core 2 Duo
    8GB 1067 MHz DDR3
    SAMSUNG SSD 830 Series , 256 GB
    OS X 10.7.3

    cece2bali wrote: "it seems that your mac tries to connect to a server while booting. This action will erase all your network configuration..."
    Where can I go to learn more about this 'erasure' of network configuration if the mac tries to connect to a server while booting?
    I get the same error message as the OP. My account is an Admin on the machine. It's configured to automatically log in on boot -- except sometimes it fails. It has a login-item which runs a bash script that makes an https request to a nearby machine. Maybe I should make this script sleep a while so the https action happens after the boot sequence is done? (unlike SmashHuevo, my user needs to be an Admin)

  • "Could not get the audio data from the file" error

    Hi
    I get a lot of "Could not get the audio data from the file" errors when opening a project. Sometimes they crash Premiere Pro CC 7.01 (Mac). But if not Premiere works as usual, with the audio.
    I tried to convert the audio files (coming from Audition) from 32 to 16 bit. It worked while opening a project once, but not the following times.
    Where can it come from ?
    Edit: I also get this error when importing audio: "Error: Premiere Pro version 7.0 is not compatible with the Premiere Pro Plug-in version 5.7.4". Maybe it is connected.

    Got it! It was the Smartsound plugin making trouble. Got rid of it and no more errors.

  • Google cloud print for officejet pro 8600 - could not get printer information from hp.

    I just purchased a new OfficeJet Pro 8600 today. Everything seems to work great except for the connector to Google Cloud Print. I can print from AirPrint, as well as emails to the hpeprint.com address, but when I try to register via the google site, I receive the "could not get printer information from HP" error message.
    The printer is connected via wireless ethernet, and seems to work find otherwise. I have no restrictions on who can send print jobs, and I have changed the email address for hpeprint.com a few times, as suggested in other forum threads, but it can never connect to the the Cloud Print service. I am at the latest firmware level listed on the HP website. I have tried to initiate the connection from multiple PC's as well as multiple web browsers.
    This was a big factor in purchasing this printer. Help anyone?
    This question was solved.
    View Solution.

    Hey rch33k, I am sorry for the ongoing issue that you are having accessing Google Cloud Print. This is being looked into as this is not a singular issue and is affecting other customers as well.  Engineers are currently investing this problem to try and provide a solution to it.  I want to again apologize and thank you all for your patience in this matter.  They only other thing to attempt at this time is to contact Google for further assistance to see if anything can be done on their end. Hopefully this will be fixed quickly
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Google cloud print "could not get printer information from hp"

    As of today google cloud print has stopped working with my laser jet pro. I started getting an error message that "hp eprint is unavailable at this time". I decided to remove my hp printer from google cloud print. I haven't been able to add it back in since. Every time I try to verify the printer with google cloud print I get the error message "could not get printer information from hp". Everything seems to be configured properly as far as I can tell. I even removed the printer from hp connected and readded the printer and have changed my printers email address. Help please! I am on Chrome OS and this is the only option I have to print.  

    The issue just kind of resolved itself today and I was able to add the printer. I'm assuming it was some kind of server issue on hp's end because I haven't changed anything since yesterday. 

  • HT5012 Could not get the 4G through iphone 5s while my SIM supports it in other devices?!

    Could not get the 4G through iphone 5s while my SIM supports it in other devices?!

    Hamed.ghabshi wrote:
    Using the phone in Oman and my other number working fine with it in 4G!
    The phone number and SIM is irrelevant if you get 4G or not.
    The phone hardware is what is relevant.
    Where is this iPhone originally from?

  • Can not get the agent from rule determination

    Dear expert,
      We have a PR workflow,for one step, the agent is determined by one rule,In our Q system,everythink is ok to get the agent correctly,and the workflow also can works.but in our P system,can not get the agent from the rule,when we simulate the rule,the agent can be get smoothly,but in workflow,realy can't get the agent(after trace the workflow), so would you like to give me sone suggestion, whant had happen in our workflow?
    Many thanks!
    Best Regards,
    Kerry

    Tks!
    I have one question,how to check the agent assignment is active?
    and also want to say,the rule that determin the responsible agent is used at one step of the workflow,not for possible agent of task ,and the rule's type is RESPONSIBILITIES.
    Best Regards
    Edited by: Kerry Wang on Jun 25, 2010 3:14 AM

  • Could you tell me please why I could not do the upgrade from Adobe Lightroom 5 to Lightroom 6 ( standard version not CC ) !? I make the payment, I have the confirmation of payment, i have the license key, but when I want to download my upgrade, i receive

    Could you tell me please why I could not do the upgrade from Adobe Lightroom 5 to Lightroom 6 ( standard version not CC ) !? I make the payment, I have the confirmation of payment, i have the license key, but when I want to download my upgrade, i receive the message "413 Header Length too large". Thank you. Catalin Mihaescu from [email protected]

    Are you using Chrome? I noticed these errors on Adobe's website redesign using Chrome. Try a different browser.

  • HT2204 Why is the app store not synced with icloud? Have so many logins and cannot login to one or the other sometimes. Wanted the latest updates to an app my friends already got and could not get the update all day long.

    Why is the app store not synced with icloud? Have so many logins and cannot login to one or the other sometimes. Wanted the latest updates to an app my friends already got and could not get the update all day long.

    In after 10 hours. Magic...

  • HT2905 can someone please tell me why I do not get the delete from disk option when trying to delete duplicate items

    can someone please tell me why I do not get the delete from disk option when trying to delete duplicate items

    The content must be in the iTunes directory structure for that option to appear.

  • Could not getting field values from form

    hi,
    hellow, can you help me for solving the bellow problem
    i have form its enctype attribute of form tag is setted as multipart/form-data. when i am submiting this form, i call a request.getParameter(); in the submitting jsp file. But for any controls such as text,checkbox,select box etc could not get its corresponding value.

    Its obvious why its not picking up the change in the second action.
    Lets see...
    Here is your case I
    You get the populated form which is also put in the request with updated value from the JSP....
    (1)
    protected Forward updateGoalObjective(GoalsForm form)
    form.setGoalId(44); //int field set to 44
    return new Forward("success");
    You set one of the fields some other value....in one but how will the second action know about it???
    You try to execute the second action and the action grabs the form from the request again. This is the original form submitted by the JSP so you still see that value...
    You will have to pass in the customized or processed form for the form to be able to get it...
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    In your second case you create a new form...why would you want to do that if you have a form value being set in JSP??
    The answer is you should be doing something Like this:
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="showGoal.do"
    protected Forward updateGoalObjective(GoalsForm form)
    //other code
    form.setGoalId(44); //int field set to 44
    return new Forward("success", form);
    * @jpf:action form="goalsForm"
    * @jpf:forward name="success" path="Goal.jsp"
    protected Forward showGoal(GoalsForm form)
    System.out.println(form.getGoalId()); //prints 68
    return new Forward("success");
    }

  • ORA-12154: TNS:could not resolve the connect identifier specified using TOAD client

    I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.

    948021 wrote:
    I try to using connect with remote database using TOAD client. My oracle version is 10.2g. I follow these instructions that specified on this link, instead of step 13, because i cant understand what they explain http://http://avangari.wordpress.com/remote-oracle-database-access-using-instant-client-and-toad/ . My Oracle TNS_ADMIN path is C:\oracle\product\10.2.0\db_1\network\ADMIN and ORACLE_HOME is C:\oracle\product\10.2.0\db_1. I found many question regarding this query, but i am not found my answer.
    see: http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/ (ora-12154 TNS:could not resolve the connect identifier specified)
    And for background info
    see: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/  (Help! I can’t connect to my database  )
    see: http://edstevensdba.wordpress.com/2011/02/16/sqlnet_client_cfg/  ( Help! I can’t connect to my database (part duex) )

  • Java does not get file list from shared folder in another server.

    Hi,
    I'm using java 1.4.2.16,
    Command below does not get file list.
    import java.io.;*..
    File file = new File("\\\\10.242.22.28\\SapMII");
    File[] files = file.listFiles();
    SapMII folder is Everyone full Control permission.
    How can i solve this problem?
    Thanks.

    Could you please post replies in a more helpful way? Just informing me that it was an NPE doesn't really tell me anything. Post the stacktrace (Exception#printStackTrace()). And the listFile() methods API has this to say:
    Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs.I'm able to run this sample code easily:
    import java.io.File;
    public class TestFileList {
         public static void main(String[] args) {
              File file = new File("\\\\10.40.55.33\\shared");
              File [] files = file.listFiles();
              for(File currentFile: files )
                   System.out.println(currentFile.getName());
    }

  • 9ias report server --could not get the response

    i could not run reports server on linux 6.2.
    it works like this ---- web site found, waiting for reply
    then i get no response.
    have anybody got answer for that????
    plz help
    i detailed configuration procedure (incuding patches etc)
    will be much helpful.
    thanks in advance
    smaran
    [email protected]

    It's still not working even if I export for ORACLE_HOME
    Red hat version : 2.6.9-5ELsmp
    [oracle@appli bin]$ ./rwdiag.sh -findall
    Environment:Environment java.lang.UnsatisfiedLinkError: /u01/app/oracle/mdw/lib/ librwu.so: /usr/X11R6/lib/libXm.so.2: undefined symbol: _Xsetlocale
    Environment:getEnvironmentStrings java.lang.UnsatisfiedLinkError: /u01/app/oracl e/mdw/lib/librwu.so: /usr/X11R6/lib/libXm.so.2: undefined symbol: _Xsetlocale
    java.lang.reflect.InvocationTargetException
    oracle.reports.RWException: IDL:oracle/reports/RWException:1.0
    Broadcast mechanism used to locate servers
    Channel address = 228.5.6.7
    Channel port = 14021
    REP-50503 No server found in the network

Maybe you are looking for