.htaccess: authentication failure

Alles, was den Apache betrifft, kann hier besprochen werden.

.htaccess: authentication failure

Postby markus4897 » 08. October 2009 15:18

Hallo,

ich will ein Verzeichnis schützen, komm aber nicht in das Verzeichnis rein, obwohl ich das passwort richtig eingeben habe.
Die error.log:
Code: Select all
[Thu Oct 08 16:21:25 2009] [error] [client 127.0.0.1] user bank: authentication failure for "/bank": Password Mismatch

Die .htaccess:
Code: Select all
RewriteEngine on
AuthType Basic
AuthName "Bitte Passwort eingeben"
AuthUserFile E:/xampp/htdocs/bank/.htusers
require valid-user
markus4897
 
Posts: 13
Joined: 25. September 2009 14:16

Re: .htaccess: authentication failure

Postby Wiedmann » 08. October 2009 15:21

obwohl ich das passwort richtig eingeben habe.

Also dein Apache ist da einer anderen Meinung:
Code: Select all
Password Mismatch

(und hat im Zweifel immer Recht ;-) )
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: .htaccess: authentication failure

Postby markus4897 » 08. October 2009 15:28

Hallo,

ich habe das Passworrt unter http://de.selfhtml.org/servercgi/server ... hnisschutz verschlüsseln lassen (Crypt). Bei md5-Verschlüsselung kommt die gleiche Meldung :cry:
Wenn ich es aber Klartext speicher komm ich rein.
markus4897
 
Posts: 13
Joined: 25. September 2009 14:16

Re: .htaccess: authentication failure

Postby Wiedmann » 08. October 2009 15:46

ich habe das Passworrt unter http://de.selfhtml.org/servercgi/server ... hnisschutz verschlüsseln lassen (Crypt).

Eben das war der Fehler (oder zumindest taugt dieses Webtool nichts).
--> Zum Verwalten der Passwortdatei ist beim Apache das Tool "htpasswd" dabei.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: .htaccess: authentication failure

Postby markus4897 » 08. October 2009 15:50

Und wo ist das Tool versteckt?
markus4897
 
Posts: 13
Joined: 25. September 2009 14:16

Re: .htaccess: authentication failure

Postby Nobbie » 08. October 2009 17:37

markus4897 wrote:Und wo ist das Tool versteckt?


An derselben Stelle, wo auch Apache selbst (httpd.exe) "versteckt" ist!
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04

Re: .htaccess: authentication failure

Postby markus4897 » 09. October 2009 12:34

Wenn ich aber auf htpasswd.exe gehe, öffnet sich kien Fenster.
markus4897
 
Posts: 13
Joined: 25. September 2009 14:16

Re: .htaccess: authentication failure

Postby Nobbie » 09. October 2009 13:29

Das ist auch nichts zum "draufgehen", das ist ein Kommandozeilenwerkzeug, welches man mit bestimmten Parametern in einer Shell (DOS-Box) aufruft, was dann die gewünschten Benutzerdaten inkl. Passwort in die gewünschte Passwortdatei schreibt.

Gibt es bestimmt bei Google viele Informationen zu finden.
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04

Re: .htaccess: authentication failure

Postby markus4897 » 16. October 2009 13:36

Hallo,

htpasswd.exe spuckt mir aber auch die flasche MD5-Verschlüsselung aus.
markus4897
 
Posts: 13
Joined: 25. September 2009 14:16

Re: .htaccess: authentication failure

Postby Nobbie » 16. October 2009 15:05

markus4897 wrote:htpasswd.exe spuckt mir aber auch die flasche MD5-Verschlüsselung aus.


Bei mir nicht - wie kommst Du darauf?
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 230 guests