Home › Forums › OS X Server and Client Discussion › Open Directory › Kerberos keytab error when trying to join Kerberos…
- This topic has 5 replies, 3 voices, and was last updated 15 years, 11 months ago by
s_bennett.
-
AuthorPosts
-
March 30, 2009 at 3:13 pm #375839
theboyk
ParticipantHello.
I have one Xserve running as an OD Master, running 10.5.6 Server.
I have a second Xserve, also running 10.5.6 Server set up with OD role “Connected to a Directory System” (with Directory System being the first Xserve). But, when, on the second Xserve, I try and “Join Kerberos…” and I fill in the following info:REALM: xserve001.domain.com
Administrator Name: shortname of directory admin
Password: password of directory adminWhen I click “OK”, I get the following error:
Kerberos keytab error
Error while creating the Kerberos keytab file for this server.Does anyone know what I’m doing wrong?
This second Xserve USED to be a replica of the OD Master, but it was demoted to Stand Alone, then set to “Connected to a Directory System” — could this have anything to do with the error?
Thanks,
Kristin.May 7, 2009 at 5:24 pm #376133s_bennett
ParticipantI’m having the exact same problem (same os revision also). Does anyone have other ideas? Moving the /etc/krb5.keytab file did not seem to help.
On the OD Master side, I’m also getting an error when I attempt to delegate authority to join a kerberos domain.
From server admin, I go to the OD Master -> Open Directory -> General pane and click on add kerberos record…in the pop up window I enter:
directory admin / pw for Administrator name and password ,
OD computer record name for “Configuration Record Name”
user shortname for “delegated administrators”This returns:
“Unable to create Kerberos service principals for the Kerberos configuration record.”
I’ve checked and double checked DNS: forward and reverse lookups work for both OD Master and the member server I want to join.
Also the configuration record name in OD matches DNS (in the form “hostname$” which I think is normal for OD)I get this chunk of information in the kerberos server log when I attempt to add a record:
May 07 10:12:05 my.odmaster.server krb5kdc[13728](info): AS_REQ (7 etypes {18 17 16 23 1 3 2}) xxx.xxx.xxx.xxx: NEEDED_PREAUTH: [email protected] for kadmin/[email protected], Additional pre-authentication required
May 07 10:12:05 my.odmaster.server krb5kdc[13728](debug): handling authdata
May 07 10:12:05 my.odmaster.server krb5kdc[13728](debug): handling authdata
May 07 10:12:05 my.odmaster.server krb5kdc[13728](debug): .. .. ok
May 07 10:12:05 my.odmaster.server krb5kdc[13728](debug): .. .. ok
May 07 10:12:05 my.odmaster.server krb5kdc[13728](info): AS_REQ (7 etypes {18 17 16 23 1 3 2}) xxx.xxx.xxx.xxx: ISSUE: authtime 1241716325, etypes {rep=16 tkt=16 ses=16}, [email protected] for kadmin/[email protected]
May 07 10:12:05 my.odmaster.server krb5kdc[13728](info): AS_REQ (7 etypes {18 17 16 23 1 3 2}) xxx.xxx.xxx.xxx: ISSUE: authtime 1241716325, etypes {rep=16 tkt=16 ses=16}, [email protected] for kadmin/[email protected]I’m not exactly sure if the two problems are related but getting my member servers to join the existing kerberos realm would be really nice…
UPDATE:
running this command on the xserve I want to join to the kerberos realm:command: sso_util configure -r MY.KERBEROS.REALM -a odadmin -p ***** all
results in this:
Contacting the directory server
Creating the service list
Creating the service principals
kadmin: Communication failure with server while initializing kadmin interface
2009-05-07 11:29:37 -0700 – sso_util command failed with status 2so I check the OD master and while kadmin.local works, I can’t access kadmin from the command line.
May 8, 2009 at 4:23 pm #376140s_bennett
Participanthere’s what I get when listing running processes:
44 ?? 0:00.90 /usr/sbin/kadmind -passwordserver -nofork
and invoking kadmin from the command line results in this:
Authenticating as principal “mydirectoryadmin”/[email protected] with password.
kadmin: Client not found in Kerberos database while initializing kadmin interfaceFrom the kadmin log:
“No dictionary file specified, continuing without one.”
-only entry listed but I think this is just a notificationI’m learning more than I ever wanted to know about kerberos. I’m not sure what the “client not found” message means.
The admin principle does exist in the kerberos database….Thanks for reading.
May 12, 2009 at 12:19 am #376154s_bennett
ParticipantUpdate:
got kadmin running. there were a couple of issues,
The primary one being that the config file that OS X spits out when creating the OD master
( /Library/Preferences/edu.mit.Kerberos ) was not correct, it had one of the OD replicas I’d configured as the
“admin” server. I wish apple’s docs would point more out more clearly that realms can be edited via the kerberos utility app. I found this article to be very useful if anyone else is new to this and having trouble:[url]http://web.mit.edu/macdev/KfM/Common/Documentation/preferences-osx.html#config[/url]
After tweaking the config settings, executing “sudo kadmin -p “directoryadmin” gets me to kadmin prompt successfully.
Now, in the server admin app I can “add a kerberos record” on the OD -> settings main pane.
However, attempting to join a server to the kerberos realm still fails after I’ve added a kerberos record on the OD Master to delegate join authority for an admin.
It returns an invalid username or password error (despite the fact that the user principle does exist and can get tickets issued from the kdc)
On the member server attempting the join there are no new kadmin or krb5kdc log entries generated after this action.
Hope that all made sense, thanks for reading.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed