{% extends 'rest_framework/base.html' %} {% load bootstrap3 i18n %} {% block content %}
sudo curl -o /etc/krb5.keytab {{ protocol }}://{{ server_name }}/no-auth/get_host_keytab/`hostname -f` sudo k5start -q -f /etc/krb5.keytab -U -- curl -o /etc/ssl/private/host.pem --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'get_host_certificate' %} sudo openssl x509 -in /etc/ssl/private/host.pem -out /etc/host.pem sudo k5start -q -f /etc/krb5.keytab -U -- curl --data-binary @/etc/ssh/ssh_host_ecdsa_key.pub --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'set_ssh_pub' %} sudo k5start -q -f /etc/krb5.keytab -U -- curl --data-binary @/etc/ssh/ssh_host_ed25519_key.pub --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'set_ssh_pub' %} sudo k5start -q -f /etc/krb5.keytab -U -- curl --data-binary @/etc/ssh/ssh_host_rsa_key.pub --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'set_ssh_pub' %} sudo k5start -q -f /etc/krb5.keytab -U -- curl --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'set_mount_point' %}?mount_point=/&options=rw&fs_type=ext4&device=/dev/sda1 IP_ADDRESS=`sudo k5start -q -f /etc/krb5.keytab -U -- curl --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'get_info' %} | grep REMOTE_ADDR | cut -f 2 -d ':'` MAC_ ADDRESS=`/sbin/ifconfig | grep -B 2 ${IP_ADDRESS} | grep HWaddr | cut -d 'H' -f 2 | cut -d ' ' -f 2` sudo k5start -q -f /etc/krb5.keytab -U -- curl --anyauth -u : {{ protocol }}://{{ server_name }}/auth/set_dhcp/${MAC_ADDRESS}/ sudo chmod 0400 /etc/krb5.keytab /etc/ssl/private/host.pem
sudo k5start -q -f /etc/krb5.keytab -U -- curl --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'set_service' scheme='SCHEME' hostname='HOSTNAME' port='0' %}?encryption=none|tls|starttls&srv_field=scheme&kerberos_service=SCHEME&role=Service&protocol=tcp|udp sudo k5start -q -f /etc/krb5.keytab -U -- curl --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'set_extra_service' hostname='HOSTNAME' %}?ip=IP_ADDRESS
sudo k5start -q -f /etc/krb5.keytab -U -- curl --anyauth -u : {{ protocol }}://{{ server_name }}{% url 'get_dhcpd_conf' %}