Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
Htaccess and ACL
Wrong user and password
padox #1
Member since Jul 2007 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Htaccess and ACL
hi all,
i have a small problem, turning on a htaccess password.

if i turn on a htaccess password on my domain, dokuwiki reply for me Wrong User and Password on every page !

If i disable de htaccess password all is good. If i turn "Safe Mode" to ON on my php.ini, all is working fine !

Any ideas please ? Sorry for my bad english :)
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3509 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Using .htaccess and DokuWiki's own auth system is a bad idea. DokuWiki will try to use the external (.htaccess) login to authenticate you. This is quite handy when using an external auth backend as it allows SSO with Apache auth. In your case I recommend not doing that. Either disable ACL or .htaccess basic auth.

If this is for whatever reason not an option, remove these lines from inc/auth.php:

  1.       // if no credentials were given try to use HTTP auth (for SSO)
  2.       if(empty($_REQUEST['u']) && empty($_COOKIE[DOKU_COOKIE]) && !empty($_SERVER['PHP_AUTH_USER'])){
  3.         $_REQUEST['u'] = $_SERVER['PHP_AUTH_USER'];
  4.         $_REQUEST['p'] = $_SERVER['PHP_AUTH_PW'];
  5.       }
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 13:27:57 (UTC +01:00)