Home › Forums › OS X Server and Client Discussion › Open Directory › HELP cleanup Kerberos on 10.4.11 server
- This topic has 10 replies, 2 voices, and was last updated 16 years, 6 months ago by
lschafroth.
-
AuthorPosts
-
September 11, 2008 at 3:55 pm #374064
lschafroth
ParticipantI have a Xserve running as a Open Directory Master and a PDC. This is working fine, but it has never been kerberized. When I try to do it from the GUI interface it keeps prompting for a password and never does anything.
I followed some guides on doing it all from the comand line and I am close but still get a few errors.
Can someone help me with intructions on what files to delete, so I have a fresh start?
The dns forward and reverse lookups all return the correct domain. xserve4.winterset.k12.ia.us
The sharing name is xserve4.localHere are the commands I tried:
[b]kerberosautoconfig -r XSERVE4.WINTERSET.K12.IA.US -m xserve4.winterset.k12.ia.us[/b]
[b]RESULTS:[/b]
xserve4:/usr/sbin root# kdcsetup -f /LDAPv3/127.0.0.1 -w -a DIRADMIN -p ****** XSERVE4.WINTERSET.K12.IA.US
create: The database ‘/var/db/krb5kdc/principal’ appears to already exist
SendInteractiveCommand: failed to get pattern
WARNING: no policy specified for [email protected]; defaulting to no policy
add_principal: Principal or policy already exists while creating “[email protected]”.
edu.mit.kadmind: Already loaded
com.apple.kdcmond: Already loaded[b]kdcsetup -f /LDAPv3/127.0.0.1 -w -a DIRADMIN -p ****** XSERVE4.WINTERSET.K12.IA.US[/b]
[b]RESULTS:[/b]
kdb5_util: File exists while creating/opening admin policy database.
WARNING: no policy specified for [email protected]; defaulting to no policy
kadmin.local: Principal kadmin/[email protected] does not exist.
kadmin.local: Principal kadmin/[email protected] does not exist.
edu.mit.kadmind: Already loaded
com.apple.kdcmond: Already loaded
xserve4:/var/db/krb5kdc root# Workaround Bonjour: Unknown error: 0
Workaround Bonjour: Unknown error: 0[b]slapconfig -kerberize DIRADMIN XSERVE4.WINTERSET.K12.IA.US[/b]
[b]RESULTS:[/b]
DIRADMIN’s Password: (I type it in)
Removed directory at path /var/db/krb5kdc.
command: /sbin/kerberosautoconfig -r XSERVE4.WINTERSET.K12.IA.US -m xserve4.winterset.k12.ia.us -u -v 1
command: /usr/sbin/kdcsetup -f /LDAPv3/127.0.0.1 -w -a DIRADMIN -p **** -v 1 XSERVE4.WINTERSET.K12.IA.US
kdcsetup command output:
Contacting the Directory Server
Authenticating to the Directory Server
Creating Kerberos directory
Creating KDC Config File
Creating Admin ACL File
Creating Kerberos Master Key
Creating Kerberos Database
Creating Kerberos Admin user
Adding kerberos auth authority to admin user
Creating keytab for the admin tools
Adding KDC & kadmind to launchd
Adding the new KDC into the KerberosClient config record
AddKDCToConfig: KDC is already present in record
Finished
command: /usr/sbin/sso_util configure -r XSERVE4.WINTERSET.K12.IA.US -f /LDAPv3/127.0.0.1 -a DIRADMIN -p **** -v 1 all
sso_util command output:
Contacting the directory server
Creating the service list
Creating the service principals
sso_util command failed with status 2
command: /usr/sbin/sso_util configure -r XSERVE4.WINTERSET.K12.IA.US -f /LDAPv3/127.0.0.1 -a DIRADMIN -p **** -v 1 ldap
sso_util command output:
Contacting the directory server
Creating the service list
Creating the service principals
sso_util command failed with status 2
command: /usr/sbin/mkpassdb -kerberize (it sits here forever – have to do a CONTROL C)[b]sso_util configure -r XSERVE4.WINTERSET.K12.IA.US -a DIRADMIN -p ****** all[/b]
[b]RESULTS:[/b]
Contacting the directory server
Creating the service list
Creating the service principals
SendInteractiveCommand: failed to get patternI had to manuall start the KDC service before doing all of this as it never runs automatically. We cannot reinstall the server as we are in the middle of the school year and have 1700 accounts and many XP systems joined to the domain and need Kerberos to work for our Leopard clients. They TAKE FOREVER to login to the Tiger server and I was told it was because Kerberos is not working.
We also want to use Spiceworks with authenticated users for the HelpDesk but it will not work until Kerberos is working. Spiceworks SETUP for the AD account fails without it.
Please help. 🙂
Lannie
September 13, 2008 at 2:56 am #374086lschafroth
Participanthello??
September 17, 2008 at 5:07 pm #374135lschafroth
ParticipantAnyone?
September 22, 2008 at 2:10 am #374197lschafroth
ParticipantI take it from the lack of response that Kerberos is an impossible task on the MAC.
Lannie
September 24, 2008 at 7:41 pm #374240lschafroth
Participantyawn…..
September 25, 2008 at 10:48 pm #374258lschafroth
Participantcrickit…..crickit……
October 2, 2008 at 2:41 pm #374322lschafroth
Participanttime to switch to windows?
October 2, 2008 at 6:59 pm #374339lschafroth
ParticipantI found this link:
https://www.afp548.com/article.php?story=20060714092117916&query=kerberize
I got very close!! The commands all worked until I got to the kinit command. It says no kdc server could be contacted. The kdc service is running, but I have not rebooted the server until tonight.
Can anyone give me a pointer on the next step to troubleshoot?
Thanks!!
Lannie
October 3, 2008 at 12:46 pm #374359lschafroth
ParticipantI found a great kerberos pdf that came from this site. It shows a lot of example files and configurations. I will go through it today and see what happens.
Thanks!!
Lannie
October 7, 2008 at 4:15 pm #374386lschafroth
ParticipantI had to add KDC to the /etc/hosts
so I had:
10.x.x.x servername.winterset.k12.ia.us kdc
Then it worked.
LAnnie
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed