LDAP as a principal store
© 2014 Dennis Leeuw dleeuw at made-it dot com
License: GPLv2 or later
To make an LDAP entry a Kerberos principal add the krbPrincipalAux object class to the entry, using a simple LDIF:
dn: cn=dleeuw,ou=people,dc=example,dc=com changetype: modify add: objectClass objectClass: krbPrincipalAux - add: krbPrincipalName krbPrincipalName: dleeuw@EXAMPLE.COMWith the cpw command of kadmin.local you can now change the key for the user. The above process has to be done for all users. Make sure you set a different password from your LDAP password (if you have a userPassword field in LDAP), which makes testing easier.
To allow machines to talk to the Kerberos database we need atleast a host principal
dn: cn=myhost,ou=devices,dc=example,dc=com changetype: modify add: objectClass objectClass: krbPrincipalAux - add: krbPrincipalName krbPrincipalName: host/myhost.example.com@EXAMPLE.COMWith the cpw command of kadmin.local you can now change the key for the device using a randomkey:
cpw -randkey host/myhost.example.comThe above processes have to be done for all devices.