Hi,
> If you configure a virtual host in apache with Auth Basic and phpldapadmin
> configurated for http auth, iceweasel tells you about detect a loop and it
> doesn't continue.
phpldapadmin probably encountered an error parsing your configuration early
on, but then redirected back to index.php which in turn errored again, and
again, ad infinitum.
What your probably need is for its system_message() to log the error
so that you can actually read it without having working index.php with
access to the session and pretty-printing.
If you haven't done so already for another reason, set up
/etc/php5/apache2/php.ini with the options 'log_errors' and 'error_log'.
Note that the logging runs as www-data, so you will probably need to
touch and chown the log file to www-data before you'll get any output in it.
And then apply this short patch to phpldapadmin source:
--- /usr/share/phpldapadmin/lib/functions.php~ 2009-05-28 14:41:57.000000000
+0200
+++ /usr/share/phpldapadmin/lib/functions.php 2009-05-28 14:39:43.000000000
+0200
@@ -607,6 +607,9 @@
if (! isset($msg['type']))
$msg['type'] = 'info';
+error_log("phpldapadmin system_message: " . print_r($msg, true) );
+error_log("phpldapadmin redirect: " . print_r($redirect, true) );
+
$_SESSION['sysmsg'][] = $msg;
if ($redirect) {
Then look at the log file and it will probably tell you something like it
told me just now:
[28-May-2009 14:36:56] phpldapadmin system_message: Array
(
[title] => Error
[body] => ERROR: Setting a index [uidpool_dn] that isnt predefined.
[type] => error
)
[28-May-2009 14:36:56] phpldapadmin redirect: index.php
Then you have a clue where to go fixing (in my case it was some old fiddling
with /etc/phpldapadmin/config.php).
(Fabio, please consider applying a patch like this in the default
installation, too.)
--
2. That which causes joy or happiness.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]