Hi Holger,

ist das Apache 2.4?
Da gibt es ja Änderungen was Konfigurationen und Module angeht.

Bin da jetzt auch kein Experte aber vielleicht hilft das hier weiter:
http://httpd.apache.org/docs/current/mod/mod_authn_core.html

Grüße

Michael

-----Ursprüngliche Nachricht-----
Von: linuxmuster-user [mailto:[email protected]] 
Im Auftrag von Holger Baumhof
Gesendet: Donnerstag, 19. Februar 2015 16:43
An: [email protected]
Betreff: [lmn] .htaccess datei fuer Verzeichnisbaum

Hallo alle zusammen,

ich hätte da mal ein Problem:
ich stelle den Vertretungsplan von GPUntis unter anderem in seiner "statischen" 
Form auf meinem Server bereit.
Das Verzeichnis beinhaltet eine default.htm in der es frames gibt, in dneen 
mann dann den Lehrer oder einen Raum anzeigen lassen kann.

Damit da nicht jeder reinschauen kann habe ich das mittels .htaccess Datei 
abgesichert.
Das funktioniert auch "erstmal".
Nur Lehrer dürfen rein (klappt: Schüler werden abgewiesen).

Aber: wenn man 2 oder dreimal das Loginfenster wegklickt, ist man doch drin :-o 
Man sieht die Seite und kann im Pulldown Menü auswählen, was man will ..

Wie kann ich das dicht machen?

Die Dateien liegen hier:

/var/www/Vertretungsplan/statisch/
Ein ls des Verzeichnisses habe ich unten angehängt.

Der Inhalt der .htaccess Datei ist:
-------------------------
AuthType Basic
AuthName "Stundenplan LMG"
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLdapURL ldaps://10.16.1.1/dc=linuxmuster,dc=local?uid
AuthLDAPGroupAttributeIsDN off
AuthLDAPGroupAttribute memberUid
Require ldap-group cn=teachers,ou=groups,dc=linuxmuster,dc=local
-------------------------


Viele Grüße

Holger

/var/www/Vertretungsplan # ls -al statisch/ insgesamt 212 drwxr-xr-x 48 
www-data www-data 4096 Feb 19 16:21 .
drwxr-xr-x  8 www-data www-data 4096 Feb 19 16:25 ..
drwxr-xr-x 11 www-data www-data 4096 Sep 10 14:58 01 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:00 02 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:03 
03 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:05 04 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:08 05 drwxr-xr-x  8 www-data www-data 4096 Jan 24  2014 
06 drwxr-xr-x  8 www-data www-data 4096 Jan 30  2014 07 drwxr-xr-x  8 www-data 
www-data 4096 Feb 11  2014 08 drwxr-xr-x  8 www-data www-data 4096 Feb 17  2014 
09 drwxr-xr-x  8 www-data www-data 4096 Feb 21  2014 10 drwxr-xr-x  8 www-data 
www-data 4096 Mär  7  2014 11 drwxr-xr-x  8 www-data www-data 4096 Mär  7  2014 
12 drwxr-xr-x  8 www-data www-data 4096 Mär 17  2014 13 drwxr-xr-x  8 www-data 
www-data 4096 Mär 21  2014 14 drwxr-xr-x  8 www-data www-data 4096 Mär 28  2014 
15 drwxr-xr-x  8 www-data www-data 4096 Apr  7  2014 16 drwxr-xr-x  8 www-data 
www-data 4096 Apr 11  2014 18 drwxr-xr-x  8 www-data www-data 4096 Apr 11  2014 
19 drwxr-xr-x  8 www-data www-data 4096 Mai  2  2014 20 drwxr-xr-x  8 www-data 
www-data 4096 Mai  9  2014 21 drwxr-xr-x  8 www-data www-data 4096 Mai 18  2014 
22 drwxr-xr-x  8 www-data www-data 4096 Mai 26  2014 23 drwxr-xr-x  8 www-data 
www-data 4096 Jul 23  2014 24 drwxr-xr-x  8 www-data www-data 4096 Jul 23  2014 
26 drwxr-xr-x  8 www-data www-data 4096 Jul 23  2014 27 drwxr-xr-x  8 www-data 
www-data 4096 Jul 23  2014 28 drwxr-xr-x  8 www-data www-data 4096 Jul 23  2014 
29 drwxr-xr-x  8 www-data www-data 4096 Jul 23  2014 30 drwxr-xr-x  8 www-data 
www-data 4096 Jul 23  2014 31 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:10 
37 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:12 38 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:15 39 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:17 
40 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:20 41 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:22 42 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:25 
43 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:27 44 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:29 45 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:32 
46 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:35 47 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:37 48 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:39 
49 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:42 50 drwxr-xr-x  8 www-data 
www-data 4096 Sep 10 15:44 51 drwxr-xr-x  8 www-data www-data 4096 Sep 10 15:46 
52
-rw-r--r--  1 www-data www-data  705 Feb 11 11:30 default.htm drwxr-xr-x  2 
www-data www-data 4096 Dez 17  2013 frames
-rw-r--r--  1 root     root      279 Feb 19 16:40 .htaccess
-rw-r--r--  1 www-data www-data 3108 Mär 17  2010 untisinfo.css
-rw-r--r--  1 www-data www-data 3947 Jan  8  2010 untisscripts.js
-rw-r--r--  1 www-data www-data  425 Feb 11 11:30 welcome.htm

--
Mein öffentlicher PGP-key ist hier hinterlegt: pool.sks-keyservers.net 
_______________________________________________
linuxmuster-user mailing list
[email protected]
https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user

________________________________

Bitte nutzen Sie die E-Mail-Verbindung mit uns ausschließlich zum
Informationsaustausch. Der Inhalt dieser Nachricht ist vertraulich und
nur für den angegebenen Empfänger bestimmt. Jede Form der Kenntnisnahme
oder Weitergabe durch Dritte ist unzulässig.
Sollte diese Nachricht nicht für Sie bestimmt sein, so bitten wir Sie,
sich mit uns per E-Mail oder telefonisch in Verbindung zu setzen.

Dieser Kommunikationsweg steht ausschließlich für Verwaltungsangelegenheiten 
zur Verfügung.
Es wird darauf hingewiesen, dass mit diesem Kommunikationsmittel 
Verfahrensanträge nicht wirksam
eingereicht werden können. Sollte Ihre Nachricht einen entsprechenden 
Schriftsatz enthalten, ist
eine Wiederholung der Übermittlung mittels Telefax oder auf dem Postweg 
erforderlich.
Durch eine Übermittlung auf diesem Kommunikationsweg können keine Fristen 
gewahrt werden.
_______________________________________________
linuxmuster-user mailing list
[email protected]
https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user

Antwort per Email an