Kerberos Utility Error Message


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Kerberos Utility Error Message
# 1  
Old 09-30-2015
Kerberos Utility Error Message

Hello All,
I have below piece of code executing via shell script but for some reason even if the flag is set to KERBEROS_FLAG="N" It displays an message at the end of script execution. It should not call /usr/bin/kdestroy but looks like it is happening and this happens only for one application id other application id it is working fine.

Code:
KERBEROS_FLAG="N"

if [ "$KERBEROS_FLAG" = "Y" ]
then
        echo "  "
        echo "-->Testing Kerbros connectivity For $APPLICATION_ID To Destination Server $FA_EDW_SERVER"
        KEY_FILE="/export/appl/uxprod/etc/kerberos/$FA_EDW_SCP_USER/ssh-$FA_EDW_SCP_USER-$FA_EDW_SERVER.keytab"
        /usr/bin/kinit -k -t ${KEY_FILE} ssh/$APPLICATION_ID/$FA_SOURCE_SERVER
        if [ "$?" -eq "0" ]
        then
                echo "Successfully Connected To destination Server $FA_EDW_SERVER via Kerberos Utility"
                /usr/bin/kdestroy
        else
                echo "ERROR Connecting To destination Server $FA_EDW_SERVER via Kerberos Utility"
        fi
fi


Message:
kdestroy: No credentials cache found while destroying cache
This User Gave Thanks to Ariean For This Post:
# 2  
Old 09-30-2015
hi
My opinion
you wrote KERBEROS_FLAG="N"
There is no chance that the y.
# 3  
Old 09-30-2015
yes that flag would never be Y but still for some reason script is putting that message to standard output, hence the question.
# 4  
Old 09-30-2015
Are you sure the message is from that part of the script? Try running it with the -x option set; post result.
# 5  
Old 09-30-2015
That is strange.

It is probably time for some debugging; modify your script the following way:

Code:
set  -xv
KERBEROS_FLAG="N"

if [ "$KERBEROS_FLAG" = "Y" ]
then
        echo "  "
        echo "-->Testing Kerbros connectivity For $APPLICATION_ID To Destination Server $FA_EDW_SERVER"
        KEY_FILE="/export/appl/uxprod/etc/kerberos/$FA_EDW_SCP_USER/ssh-$FA_EDW_SCP_USER-$FA_EDW_SERVER.keytab"
        /usr/bin/kinit -k -t ${KEY_FILE} ssh/$APPLICATION_ID/$FA_SOURCE_SERVER
        if [ "$?" -eq "0" ]
        then
                echo "Successfully Connected To destination Server $FA_EDW_SERVER via Kerberos Utility"
                /usr/bin/kdestroy
        else
                echo "ERROR Connecting To destination Server $FA_EDW_SERVER via Kerberos Utility"
        fi
fi
set +xv

Then run it again and post the output. Notice that the output is going to stderr, so you need to run it that way:

Code:
script.sh 2>&1 > /some/log/file

Just a suggestion, which seems not related to your problem but may help you anyway: when you mix variables and fixed code you better write variable names this way, to avoid any ambiguity (notice the curly braces around the variable names):

Code:
string="fixed${var1}fixedagain${var2}fixed${var3}..."

I hope this helps.

bakunin
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Kerberos Authentication error

Hi , I am trying to authenticate my id on client server with Kerberos and receiving below error kinit rpagadala@BDC.soft.net kinit: Cannot contact any KDC for realm 'BDC.soft.net' while getting initial credentials Please find krb5.conf on the client server configuration which is... (1 Reply)
Discussion started by: Tomlight
1 Replies

2. Solaris

Kerberos Ticket expiry warning message

Hi, was wondering if its possible to change the default warning message text that notifies users that their kerberos ticket is due to expire in xx minutes. I am using Kerberos 5 on Sol 10. Can't find anything in man pages, so hoping its maybe an undocumented feature. I'd like to make the... (1 Reply)
Discussion started by: melias
1 Replies

3. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

4. UNIX for Dummies Questions & Answers

What does this error message mean?

I was reviewing logs and I got this error message in /var/log/messages: Did not receive identification string from (IP ADDRESS) What does it mean? (6 Replies)
Discussion started by: mojoman
6 Replies

5. UNIX for Dummies Questions & Answers

Error message: What does it mean?

I get this error message in my maillog. Can someone tell me what it means? SYSERR(root): collect: I/O error on connection from mail-05.goomba.com I guess it means that the server could not connect to mail-06.goomba.com. Is my interpretation correct? Any idea why it happens? (1 Reply)
Discussion started by: mojoman
1 Replies

6. UNIX for Advanced & Expert Users

error message

I get this error message as soon as i log in -bash: /usr/local/software/.../vni/CTT6.0/ctt/bin/lopt64.sh: No such file or directory I looked into the etc/profile but there are no lines sourcing this file. And there is no lopt64.sh in the directory vni/.../bin I couldn't fogure out what... (4 Replies)
Discussion started by: dsmv
4 Replies

7. UNIX for Advanced & Expert Users

Error message

I'm getting an error - symbol referencing errors. No output written to, etc Can anybody tell me why this is? (2 Replies)
Discussion started by: Dan Rooney
2 Replies

8. UNIX for Dummies Questions & Answers

Error Message

Hi everyone, Can anyone explain what the following error refers to...and perhaps a solution? vxfs: vx_nospace -/tmp file system full (8 block extent) Thanks, Uni (2 Replies)
Discussion started by: Uni
2 Replies

9. UNIX for Dummies Questions & Answers

error message

Hi All, occasionally my server gives this error messages "NOTICE:HTFS Out of inodes on HTFS dev hd (1/42)" why ?? Alice. (3 Replies)
Discussion started by: alisev
3 Replies
Login or Register to Ask a Question