From de098e1f22ae6cdde62aa9f6b75697852e872ced Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Thu, 20 Feb 2020 06:47:16 -0600 Subject: can now use kadmin correctly --- scripts/kerberos | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/kerberos b/scripts/kerberos index f1e16ed..0fb455d 100755 --- a/scripts/kerberos +++ b/scripts/kerberos @@ -14,11 +14,12 @@ sshpass -p $ROOT_PASS ssh-copy-id -o "StrictHostKeyChecking=no" root@$IP scp configs/kerberos/krb5.conf root@$IP:/etc/ scp configs/kerberos/kdc.conf root@$IP:/etc/krb5kdc/ scp configs/kerberos/kadm5.acl root@$IP:/etc/krb5kdc/ +scp configs/kerberos/interfaces root@$IP:/etc/network/ +scp configs/hosts root@$IP:/etc/ lxc-attach -n kerberos -- bash -c 'echo -e "'$KRB5_PASS'\n'$KRB5_PASS'" | krb5_newrealm' lxc-attach -n kerberos -- bash -c 'echo -e "'$KRB5_ADMIN_PASS'\n'$KRB5_ADMIN_PASS'" | kadmin.local addprinc root/admin' +lxc-attach -n kerberos -- systemctl restart networking lxc-attach -n kerberos -- systemctl restart krb5-admin-server lxc-attach -n kerberos -- systemctl restart krb5-kdc - -# should be able to now use kadmin, but cannot ? -- cgit v1.2.3