kinit admin; unable to find rrealm using v 7.1

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

kinit admin; unable to find rrealm using v 7.1

Ted Creedon
kinit admin

unable to find rrealm host ookpik

strace yields:
==================================
open("/usr/heimdal/bin/krb5-config --libs --deps", O_RDONLY) = -1 ENOENT (No such file or directory)
futex(0x7f2bb85b9860, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/usr/heimdal/lib64/../lib/plugin/krb5", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
futex(0x7f2bb98e48a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7f2bb9434144, FUTEX_WAKE_PRIVATE, 2147483647) = 0
uname({sysname="Linux", nodename="ookpik", ...}) = 0
write(2, "kinit: ", 7)                  = 7
write(2, "krb5_parse_name_flags: unable to find realm of host ookpik", 58) = 58
write(2, "\n", 1)                       = 1
exit_group(1)                           = ?
+++ exited with 1 +++

however:
-rwxr-xr-x 1 root root 6924 Dec 31 22:59 /usr/heimdal/bin/krb5-config*


and:
ls: cannot access '/usr/heimdal/lib64/../lib/plugin/krb5': No such file or directory
Reply | Threaded
Open this post in threaded view
|

Re: kinit admin; unable to find rrealm using v 7.1

Harald Barth-2

> open("/usr/heimdal/bin/krb5-config --libs --deps", O_RDONLY) = -1 ENOENT (No such file or directory)

Strange. It tries to open the file "/usr/heimdal/bin/krb5-config --libs --deps". Normally I would
expect that krb5-config --libs --deps is something to be executed...

$ krb5-config --libs --deps
-L/usr/lib/x86_64-linux-gnu/heimdal -lkrb5 -lhx509 -lcom_err -lhcrypto -lasn1 -lwind -lheimbase -lroken -lcrypt -pthread -lpthread -ldl -lresolv -pthread -lpthread
$

I would expect it to open krb5.conf at that place. Have you maybe set the environment
varible KRB5_CONFIG to "/usr/heimdal/bin/krb5-config --libs --deps" ????

Can you put a default realm in your krb5.conf and then set KRB5_CONFIG
to that file and see if that helps?

If you don't have set KRB5_CONFIG that would mean that you have a very
odd compiled in value for your kerberos config file, but I doubt that.

Harald.
Reply | Threaded
Open this post in threaded view
|

Re: kinit admin; unable to find rrealm using v 7.1

Ted Creedon
I exported it in error as a way to compile afs w/ heimdal.

the ticket is closed.

thanks to everyone,

tedc

________________________________________
From: Harald Barth <[hidden email]>
Sent: Tuesday, January 17, 2017 2:33:01 PM
To: Ted Creedon; [hidden email]
Subject: Re: kinit admin; unable to find rrealm using v 7.1

> open("/usr/heimdal/bin/krb5-config --libs --deps", O_RDONLY) = -1 ENOENT (No such file or directory)

Strange. It tries to open the file "/usr/heimdal/bin/krb5-config --libs --deps". Normally I would
expect that krb5-config --libs --deps is something to be executed...

$ krb5-config --libs --deps
-L/usr/lib/x86_64-linux-gnu/heimdal -lkrb5 -lhx509 -lcom_err -lhcrypto -lasn1 -lwind -lheimbase -lroken -lcrypt -pthread -lpthread -ldl -lresolv -pthread -lpthread
$

I would expect it to open krb5.conf at that place. Have you maybe set the environment
varible KRB5_CONFIG to "/usr/heimdal/bin/krb5-config --libs --deps" ????

Can you put a default realm in your krb5.conf and then set KRB5_CONFIG
to that file and see if that helps?

If you don't have set KRB5_CONFIG that would mean that you have a very
odd compiled in value for your kerberos config file, but I doubt that.

Harald.