Skip to content
Commits on Source (4)
debian-edu-config (2.10.40) UNRELEASED; urgency=medium
* ldap-tools/sitesummary2ldapdhcp: Use 'workstations' as default system type.
Change the default type from 'netdevices' to 'workstations' to avoid a
possible pitfall. (For hosts of type 'netdevices' Krb5 principals and a
related keytabfile can't be created due to missing attributes.)
Also, 'workstations' is supposed to be the wanted type in most cases.
* share/debian-edu-config/tools/gosa-modify-host: Improve logging text.
* share/debian-edu-config/tools/gosa-remove-host: Add logging statement.
-- Wolfgang Schweer <wschweer@arcor.de> Wed, 10 Oct 2018 10:59:32 +0200
debian-edu-config (2.10.39) unstable; urgency=medium
[ Wolfgang Schweer ]
......
......@@ -21,7 +21,7 @@ my $server = $ARGV[0] || find_ldap_server() || "ldap";
my $base = $ARGV[1] || find_ldap_base($server)
|| "dc=skole,dc=skolelinux,dc=no";
my $type = "netdevices";
my $type = "workstations";
if ($opts{t}) {
$type = $opts{t}
}
......@@ -43,6 +43,7 @@ information.
-u userfilter Filter used to find LDAP user used to update LDAP.
-t TYPE Specify type of system(s) to add. TYPE can be: servers,
workstations, terminals, netdevices or printers.
Defaults to workstations if not specified.
EOF
exit $retval;
......
......@@ -7,12 +7,11 @@ set -ex
HOST="$1"
/usr/share/debian-edu-config/tools/gosa-create-host $HOST
kadmin.local -q "add_principal -policy hosts -randkey host/$HOST.intern"
kadmin.local -q "ktadd -k /etc/debian-edu/host-keytabs/$HOST.intern.keytab host/$HOST.intern"
kadmin.local -q "add_principal -policy hosts -randkey nfs/$HOST.intern"
kadmin.local -q "ktadd -k /etc/debian-edu/host-keytabs/$HOST.intern.keytab nfs/$HOST.intern"
logger -t gosa-modify-host -p notice Krb5 keytab file for \'$HOST\' created.
logger -t gosa-modify-host -p notice Krb5 principals and keytab file for host \'$HOST\' created.
# update services:
/usr/share/debian-edu-config/tools/gosa-sync-dns-nfs
......
......@@ -17,6 +17,7 @@ if $(kadmin.local listprincs | grep -q $HOST) ; then
kadmin.local delprinc $i
done
rm /etc/debian-edu/host-keytabs/$(ls -l /etc/debian-edu/host-keytabs | grep $HOST | awk '{print $9}')
logger -t gosa-remove-host -p notice Krb5 principals and keytab file for host \'$HOST\' removed.
fi
#
......