<?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=Apache2_Workshop_Authentifizierung</id>
	<title>Apache2 Workshop Authentifizierung - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Apache2_Workshop_Authentifizierung"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Apache2_Workshop_Authentifizierung&amp;action=history"/>
	<updated>2026-06-29T08:44:01Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Apache2_Workshop_Authentifizierung&amp;diff=59876&amp;oldid=prev</id>
		<title>Thomas.will: /* Warum ist das wichtig? */</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Apache2_Workshop_Authentifizierung&amp;diff=59876&amp;oldid=prev"/>
		<updated>2025-03-14T20:12:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Warum ist das wichtig?&lt;/span&gt;&lt;/span&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 14. März 2025, 20:12 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-l124&quot; &gt;Zeile 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 124:&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;* Richte eine LDAP-Authentifizierung für ''ldap.it1XX.int'' ein.&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;* Richte eine LDAP-Authentifizierung für ''ldap.it1XX.int'' ein.&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;div&gt;* Teste die Authentifizierung mit verschiedenen Clients.&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;* Teste die Authentifizierung mit verschiedenen Clients.&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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&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;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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= Warum ist das wichtig? =&lt;/del&gt;&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;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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*[[Warum ist eine sichere Authentifizierung notwendig?]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Apache2_Workshop_Authentifizierung&amp;diff=59875&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „= Grundlagen = * Apache unterstützt verschiedene Methoden zur Authentifizierung von Benutzern. * Zu den häufigsten Methoden gehören ''Basic Authentication''…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Apache2_Workshop_Authentifizierung&amp;diff=59875&amp;oldid=prev"/>
		<updated>2025-03-14T20:11:37Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „= Grundlagen = * Apache unterstützt verschiedene Methoden zur Authentifizierung von Benutzern. * Zu den häufigsten Methoden gehören &amp;#039;&amp;#039;Basic Authentication&amp;#039;&amp;#039;…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Grundlagen =&lt;br /&gt;
* Apache unterstützt verschiedene Methoden zur Authentifizierung von Benutzern.&lt;br /&gt;
* Zu den häufigsten Methoden gehören ''Basic Authentication'', ''Digest Authentication'' und die Integration mit LDAP oder Datenbanken.&lt;br /&gt;
* Die Authentifizierungsmechanismen werden meist über die .htaccess-Datei oder die Apache-Konfigurationsdateien gesteuert.&lt;br /&gt;
* Eine Authentifizierung kann mit einer Zugriffskontrolle kombiniert werden, um bestimmte Bereiche der Webseite zu schützen.&lt;br /&gt;
* Apache verwendet Module wie ''mod_auth_basic'', ''mod_auth_digest'' oder ''mod_authnz_ldap'' zur Authentifizierung.&lt;br /&gt;
* Nach einer Änderung der Authentifizierungskonfiguration muss Apache neu geladen werden: '''systemctl reload apache2'''.&lt;br /&gt;
&lt;br /&gt;
= Authentifizierungsmethoden =&lt;br /&gt;
* ''Basic Authentication'' ist die einfachste Methode, nutzt aber eine unverschlüsselte Übertragung der Zugangsdaten.&lt;br /&gt;
* ''Digest Authentication'' ist sicherer, da das Passwort nicht im Klartext gesendet wird.&lt;br /&gt;
* LDAP-Authentifizierung erlaubt die Nutzung zentral verwalteter Benutzerkonten.&lt;br /&gt;
* MySQL- oder SQLite-Authentifizierung ermöglicht eine datenbankgestützte Anmeldung.&lt;br /&gt;
* Externe Authentifizierungen wie Kerberos oder OAuth sind ebenfalls möglich.&lt;br /&gt;
&lt;br /&gt;
= Basic Authentication =&lt;br /&gt;
== Erstellen einer Passwortdatei ==&lt;br /&gt;
* '''htpasswd -c /etc/apache2/.htpasswd benutzername'''&lt;br /&gt;
* Danach wird das Passwort für den Benutzer gesetzt.&lt;br /&gt;
&lt;br /&gt;
== Konfiguration in Apache ==&lt;br /&gt;
*cat /etc/apache2/sites-available/secure-site.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName secure.example.com&lt;br /&gt;
    DocumentRoot /var/www/secure&lt;br /&gt;
    &amp;lt;Directory /var/www/secure&amp;gt;&lt;br /&gt;
        AuthType Basic&lt;br /&gt;
        AuthName &amp;quot;Geschützter Bereich&amp;quot;&lt;br /&gt;
        AuthUserFile /etc/apache2/.htpasswd&lt;br /&gt;
        Require valid-user&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aktivieren und Testen ==&lt;br /&gt;
* '''a2ensite secure-site'''&lt;br /&gt;
* '''systemctl reload apache2'''&lt;br /&gt;
* Beim Aufruf der Seite wird nun eine Anmeldung verlangt.&lt;br /&gt;
&lt;br /&gt;
= Digest Authentication =&lt;br /&gt;
* Diese Methode ist sicherer als Basic Authentication.&lt;br /&gt;
&lt;br /&gt;
== Passwortdatei erstellen ==&lt;br /&gt;
* '''htdigest -c /etc/apache2/.htdigest geschuetzter_bereich benutzername'''&lt;br /&gt;
&lt;br /&gt;
== Apache-Konfiguration ==&lt;br /&gt;
*cat /etc/apache2/sites-available/secure-digest.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName digest.example.com&lt;br /&gt;
    DocumentRoot /var/www/digest&lt;br /&gt;
    &amp;lt;Directory /var/www/digest&amp;gt;&lt;br /&gt;
        AuthType Digest&lt;br /&gt;
        AuthName &amp;quot;Geschuetzter Bereich&amp;quot;&lt;br /&gt;
        AuthUserFile /etc/apache2/.htdigest&lt;br /&gt;
        Require valid-user&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aktivieren und Testen ==&lt;br /&gt;
* '''a2ensite secure-digest'''&lt;br /&gt;
* '''systemctl reload apache2'''&lt;br /&gt;
* Digest Authentication funktioniert nur mit kompatiblen Clients.&lt;br /&gt;
&lt;br /&gt;
= LDAP-Authentifizierung =&lt;br /&gt;
* Apache kann Benutzer gegen einen LDAP-Server authentifizieren.&lt;br /&gt;
&lt;br /&gt;
== Apache-Modul aktivieren ==&lt;br /&gt;
* '''a2enmod authnz_ldap'''&lt;br /&gt;
&lt;br /&gt;
== Konfiguration ==&lt;br /&gt;
*cat /etc/apache2/sites-available/secure-ldap.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName ldap.example.com&lt;br /&gt;
    DocumentRoot /var/www/ldap&lt;br /&gt;
    &amp;lt;Directory /var/www/ldap&amp;gt;&lt;br /&gt;
        AuthType Basic&lt;br /&gt;
        AuthName &amp;quot;LDAP Geschuetzter Bereich&amp;quot;&lt;br /&gt;
        AuthBasicProvider ldap&lt;br /&gt;
        AuthLDAPURL &amp;quot;ldap://ldap.example.com/ou=users,dc=example,dc=com?uid?sub?(objectClass=person)&amp;quot;&lt;br /&gt;
        Require valid-user&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aktivieren und Testen ==&lt;br /&gt;
* '''a2ensite secure-ldap'''&lt;br /&gt;
* '''systemctl reload apache2'''&lt;br /&gt;
* Benutzer müssen im LDAP-Server existieren.&lt;br /&gt;
&lt;br /&gt;
= MySQL-Authentifizierung =&lt;br /&gt;
* Apache kann Benutzer gegen eine MySQL-Datenbank authentifizieren.&lt;br /&gt;
&lt;br /&gt;
== Apache-Modul aktivieren ==&lt;br /&gt;
* '''a2enmod authn_dbd'''&lt;br /&gt;
&lt;br /&gt;
== Konfiguration ==&lt;br /&gt;
*cat /etc/apache2/sites-available/secure-mysql.conf&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName mysql.example.com&lt;br /&gt;
    DocumentRoot /var/www/mysql&lt;br /&gt;
    &amp;lt;Directory /var/www/mysql&amp;gt;&lt;br /&gt;
        AuthType Basic&lt;br /&gt;
        AuthName &amp;quot;MySQL Geschuetzter Bereich&amp;quot;&lt;br /&gt;
        AuthBasicProvider dbd&lt;br /&gt;
        AuthDBDUserPWQuery &amp;quot;SELECT password FROM users WHERE username = %s&amp;quot;&lt;br /&gt;
        Require valid-user&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Aktivieren und Testen ==&lt;br /&gt;
* '''a2ensite secure-mysql'''&lt;br /&gt;
* '''systemctl reload apache2'''&lt;br /&gt;
* Benutzer und Passwörter müssen in der MySQL-Datenbank hinterlegt sein.&lt;br /&gt;
&lt;br /&gt;
= Aufgaben =&lt;br /&gt;
* Erstelle eine Basic Authentication für eine neue Domain ''secure.it1XX.int''.&lt;br /&gt;
* Nutze Digest Authentication für ''digest.it1XX.int''.&lt;br /&gt;
* Richte eine LDAP-Authentifizierung für ''ldap.it1XX.int'' ein.&lt;br /&gt;
* Teste die Authentifizierung mit verschiedenen Clients.&lt;br /&gt;
&lt;br /&gt;
= Warum ist das wichtig? =&lt;br /&gt;
*[[Warum ist eine sichere Authentifizierung notwendig?]]&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>