When I run the command kadmin.local -q "addprinc admin/admin"
it adds the realm to the end of user. So admin/admin
becomes admin/admin@LBOX.COM
This is what I ran. Any suggestions would be awesome.
root@directory:~# kadmin.local -q "addprinc admin/admin"
Authenticating as principal root/admin@LBOX.COM with password.
WARNING: no policy specified for admin/admin@LBOX.COM; defaulting to no policy
Enter password for principal "admin/admin@LBOX.COM":
Re-enter password for principal "admin/admin@LBOX.COM":
Principal "admin/admin@LBOX.COM" created.
root@directory:~# kadmin.local -q "addprinc -randkey kadmin/directory.lbox.com"
Authenticating as principal root/admin@LBOX.COM with password.
WARNING: no policy specified for kadmin/directory.lbox.com@LBOX.COM; defaulting to no policy
add_principal: Principal or policy already exists while creating "kadmin/directory.lbox.com@LBOX.COM".
root@directory:~# /etc/init.d/krb5-admin-server restart