<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Was_mach_mskutil</id>
	<title>Was mach mskutil - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Was_mach_mskutil"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Was_mach_mskutil&amp;action=history"/>
	<updated>2026-05-15T20:27:40Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Was_mach_mskutil&amp;diff=56655&amp;oldid=prev</id>
		<title>Thomas.will am 2. Oktober 2024 um 14:29 Uhr</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Was_mach_mskutil&amp;diff=56655&amp;oldid=prev"/>
		<updated>2024-10-02T14:29:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 2. Oktober 2024, 14:29 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot; &gt;Zeile 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Hauptaufgaben von `msktutil` ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Hauptaufgaben von `msktutil` ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* *&lt;/del&gt;*Erstellen eines Computerobjekts in AD:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;** &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Erstellen eines Computerobjekts in AD:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;Mit `msktutil` kann ein neues Computerobjekt in der AD-Domäne erstellt werden. In der Anleitung wird dies mit folgendem Befehl durchgeführt:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   Mit `msktutil` kann ein neues Computerobjekt in der AD-Domäne erstellt werden. In der Anleitung wird dies mit folgendem Befehl durchgeführt:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    &lt;/del&gt;&amp;lt;code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;&amp;lt;code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    &lt;/del&gt;msktutil -c -b &amp;quot;CN=Computers&amp;quot; -s HTTP/proxy.lab34.linuggs.de -k /etc/squid/PROXY.keytab --computer-name PROXYSRV-HTTP --upn HTTP/proxy.lab34.linuggs.de --server win2022.lab34.linux.de -N&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;msktutil -c -b &amp;quot;CN=Computers&amp;quot; -s HTTP/proxy.lab34.linuggs.de -k /etc/squid/PROXY.keytab --computer-name PROXYSRV-HTTP --upn HTTP/proxy.lab34.linuggs.de --server win2022.lab34.linux.de -N&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    &lt;/del&gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    * &lt;/del&gt;Dieser Befehl erstellt ein Computerobjekt in der Active Directory-Domäne und verknüpft es mit einem Service Principal Name (SPN) für den Kerberos-Dienst.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  &lt;/ins&gt;Dieser Befehl erstellt ein Computerobjekt in der Active Directory-Domäne und verknüpft es mit einem Service Principal Name (SPN) für den Kerberos-Dienst. Die Option `-k` legt den Pfad der zu erstellenden Keytab-Datei fest, die auf dem Proxy-Server gespeichert wird. Diese Datei wird vom Squid-Proxy für die Kerberos-Authentifizierung verwendet.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    * &lt;/del&gt;Die Option `-k` legt den Pfad der zu erstellenden Keytab-Datei fest, die auf dem Proxy-Server gespeichert wird. Diese Datei wird vom Squid-Proxy für die Kerberos-Authentifizierung verwendet.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* *&lt;/del&gt;*Generieren und Aktualisieren der Keytab-Datei:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;** &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Generieren und Aktualisieren der Keytab-Datei:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;`msktutil` generiert eine Keytab-Datei, die Kerberos-Authentifizierungsschlüssel enthält. Diese Datei wird vom Squid-Proxy verwendet, um Benutzer über Kerberos zu authentifizieren.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   `msktutil` generiert eine Keytab-Datei, die Kerberos-Authentifizierungsschlüssel enthält. Diese Datei wird vom Squid-Proxy verwendet, um Benutzer über Kerberos zu authentifizieren. Die Keytab-Datei enthält kryptografische Schlüssel, die dem Computerobjekt in Active Directory zugeordnet sind. Diese Schlüssel sind notwendig, um Kerberos-Tickets für die Authentifizierung auszustellen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;  * &lt;/del&gt;Die Keytab-Datei enthält kryptografische Schlüssel, die dem Computerobjekt in Active Directory zugeordnet sind. Diese Schlüssel sind notwendig, um Kerberos-Tickets für die Authentifizierung auszustellen.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Warum der Cron-Eintrag? ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Warum der Cron-Eintrag? ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot; &gt;Zeile 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Zusammenfassung des Cron-Eintrags ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Zusammenfassung des Cron-Eintrags ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* *&lt;/del&gt;*Zweck:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;** &lt;/del&gt;Automatisches Aktualisieren der Kerberos-Schlüssel in der Keytab-Datei, um sicherzustellen, dass der Squid-Proxy weiterhin mit der Active Directory-Domäne authentifizieren kann.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Zweck: Automatisches Aktualisieren der Kerberos-Schlüssel in der Keytab-Datei, um sicherzustellen, dass der Squid-Proxy weiterhin mit der Active Directory-Domäne authentifizieren kann.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* *&lt;/del&gt;*Funktion:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;** &lt;/del&gt;Führt `msktutil` mit der Option `--auto-update` aus, um den Schlüssel regelmäßig zu erneuern.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Funktion: Führt `msktutil` mit der Option `--auto-update` aus, um den Schlüssel regelmäßig zu erneuern.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* **Vorteil:*&lt;/del&gt;* Verhindert, dass die Authentifizierung unterbrochen wird, wenn Kerberos-Schlüssel in AD ablaufen.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Verhindert, dass die Authentifizierung unterbrochen wird, wenn Kerberos-Schlüssel in AD ablaufen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Warum ist das wichtig? ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Warum ist das wichtig? ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff::1.12:old-56654:rev-56655 --&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Was_mach_mskutil&amp;diff=56654&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „== Was macht `msktutil`? == `msktutil` ist ein Dienstprogramm, das verwendet wird, um Active Directory (AD) Computerkonten zu verwalten und Kerberos-Keytab-Dat…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Was_mach_mskutil&amp;diff=56654&amp;oldid=prev"/>
		<updated>2024-10-02T14:28:04Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „== Was macht `msktutil`? == `msktutil` ist ein Dienstprogramm, das verwendet wird, um Active Directory (AD) Computerkonten zu verwalten und Kerberos-Keytab-Dat…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Was macht `msktutil`? ==&lt;br /&gt;
`msktutil` ist ein Dienstprogramm, das verwendet wird, um Active Directory (AD) Computerkonten zu verwalten und Kerberos-Keytab-Dateien auf Linux-Systemen zu erstellen und zu aktualisieren. Es hilft dabei, die Integration zwischen einem Linux-Server (wie dem Squid-Proxy) und einer Active Directory-Domäne zu ermöglichen.&lt;br /&gt;
&lt;br /&gt;
=== Hauptaufgaben von `msktutil` ===&lt;br /&gt;
* **Erstellen eines Computerobjekts in AD:** &lt;br /&gt;
  * Mit `msktutil` kann ein neues Computerobjekt in der AD-Domäne erstellt werden. In der Anleitung wird dies mit folgendem Befehl durchgeführt:&lt;br /&gt;
    &amp;lt;code&amp;gt;&lt;br /&gt;
    msktutil -c -b &amp;quot;CN=Computers&amp;quot; -s HTTP/proxy.lab34.linuggs.de -k /etc/squid/PROXY.keytab --computer-name PROXYSRV-HTTP --upn HTTP/proxy.lab34.linuggs.de --server win2022.lab34.linux.de -N&lt;br /&gt;
    &amp;lt;/code&amp;gt;&lt;br /&gt;
    * Dieser Befehl erstellt ein Computerobjekt in der Active Directory-Domäne und verknüpft es mit einem Service Principal Name (SPN) für den Kerberos-Dienst.&lt;br /&gt;
    * Die Option `-k` legt den Pfad der zu erstellenden Keytab-Datei fest, die auf dem Proxy-Server gespeichert wird. Diese Datei wird vom Squid-Proxy für die Kerberos-Authentifizierung verwendet.&lt;br /&gt;
&lt;br /&gt;
* **Generieren und Aktualisieren der Keytab-Datei:** &lt;br /&gt;
  * `msktutil` generiert eine Keytab-Datei, die Kerberos-Authentifizierungsschlüssel enthält. Diese Datei wird vom Squid-Proxy verwendet, um Benutzer über Kerberos zu authentifizieren.&lt;br /&gt;
  * Die Keytab-Datei enthält kryptografische Schlüssel, die dem Computerobjekt in Active Directory zugeordnet sind. Diese Schlüssel sind notwendig, um Kerberos-Tickets für die Authentifizierung auszustellen.&lt;br /&gt;
&lt;br /&gt;
== Warum der Cron-Eintrag? ==&lt;br /&gt;
Der Cron-Eintrag wird verwendet, um die Keytab-Datei regelmäßig zu aktualisieren. Kerberos-Authentifizierungsschlüssel haben in Active Directory eine Ablaufzeit (standardmäßig 30 Tage). Wenn die Schlüssel nicht rechtzeitig erneuert werden, kann der Linux-Server (in diesem Fall der Squid-Proxy) keine gültigen Kerberos-Tickets mehr erstellen und die Authentifizierung schlägt fehl.&lt;br /&gt;
&lt;br /&gt;
Der Cron-Eintrag stellt sicher, dass die Keytab-Datei automatisch aktualisiert wird, indem der folgende Befehl regelmäßig ausgeführt wird:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
msktutil --auto-update --computer-name PROXY --server win2022.lab34.linux.de -s HTTP/proxy.lab34.linuggs.de -k /etc/squid/PROXY.keytab -N&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Zusammenfassung des Cron-Eintrags ===&lt;br /&gt;
* **Zweck:** Automatisches Aktualisieren der Kerberos-Schlüssel in der Keytab-Datei, um sicherzustellen, dass der Squid-Proxy weiterhin mit der Active Directory-Domäne authentifizieren kann.&lt;br /&gt;
* **Funktion:** Führt `msktutil` mit der Option `--auto-update` aus, um den Schlüssel regelmäßig zu erneuern.&lt;br /&gt;
* **Vorteil:** Verhindert, dass die Authentifizierung unterbrochen wird, wenn Kerberos-Schlüssel in AD ablaufen.&lt;br /&gt;
&lt;br /&gt;
== Warum ist das wichtig? ==&lt;br /&gt;
Ohne die regelmäßige Aktualisierung der Keytab-Datei über den Cron-Job würde der Kerberos-Authentifizierungsprozess nach Ablauf der Schlüssel in Active Directory fehlschlagen, was dazu führt, dass Benutzer nicht mehr über den Squid-Proxy authentifiziert werden können.&lt;br /&gt;
&lt;br /&gt;
== Zusammenfassung ==&lt;br /&gt;
* `msktutil` erstellt und aktualisiert das Computerobjekt und die Keytab-Datei für den Linux-Server in Active Directory.&lt;br /&gt;
* Der Cron-Eintrag stellt sicher, dass die Schlüssel in der Keytab-Datei regelmäßig aktualisiert werden, um eine unterbrechungsfreie Kerberos-Authentifizierung zu gewährleisten.&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>