Bonjour!  (I wish my French was as good as your English)

I was very happy to see this mod posted.  I checked out your site and it's exactly what I was looking for. However, when I implemented the changes, there seemed to be no effect other then the category titles now where links.  I'm using punBB 1.2.9. Could this be a problem?

2

(2 replies, posted in Feature requests)

Hey!  Thank you for the suggestion. It proved quite helpful.  I'm not too sure how secure this solution is but it seems to work. Also as you mentioned, users currently have to exist in the punBB database with at least the same username.

Basically after a successful http authentication, the username provided by the server is used to find the user id and password on the punBB database. The ID and password are then used to set the cookie. The interesting thing is that the password stored in the punBB is not used in the authentication process to access the website and can be set to anything.

Inside "include/functions.php"
Just below:

function check_cookie(&$pun_user)
{
    global $db, $pun_config, $cookie_name, $cookie_seed;

    $now = time();
    $expire = $now + 31536000;    // The cookie expires after a year

The following code was added:

//If Apache Authentication is successful then SET cookie
    $username = $_SERVER["REMOTE_USER"];
    $result = $db->query('SELECT username, password, id FROM '.$db->prefix.'users WHERE username=\''.$username.'\'') or error('Goodbye', __FILE__, __LINE__, $db->error());
    $pun_user = $db->fetch_assoc($result);
   
    pun_setcookie($pun_user[id], $pun_user[password], $expire);
    //End Apache Authentication Check

3

(2 replies, posted in Feature requests)

Does anyone know how to authenticate punBB via basic http apache authentication? We have apache user realms that are tied to our LDAP server and it would be very handy to pass the username and password from the server to the punBB users table.

Both Geeklog and phpBB have mods/hacks that allow either Apache, LDAP or Active Directory authentication. These features are very attractive to larger institutions that have existing user database.  As impressive as punBB is as a forum solution, having a separate user/password database is not an option.

gkchicago wrote:

Well ... aparently the problem is no longer happening.  Never mind.

Hello gkchicago!

I just checked your website and you are getting that error again:

Fatal error: Cannot redeclare stripslashes_array() (previously declared in /home/www/htdocs/msupcg/msugamers/forum/include/common.php:55) in /home/www/htdocs/msupcg/msugamers/forum/include/common.php on line 55

I'm having the same problem and can not seem to find any solution.

Hello!
I keep getting the following error whenever I do a keyword search:

Fatal error: Cannot redeclare stripslashes_array() (previously declared in C:\xampp\htdocs\isoboard\include\common.php:55) in C:\xampp\htdocs\isoboard\include\common.php on line 55

There are no mods or customization. I'm using PHP 5.0.4 with apache.  I've tried reinstalling from scratch but with no  success. The Author Search works fine though.

This error has already been brought up by another user:  http://punbb.org/forums/viewtopic.php?id=7365
However the problem seemed to go away and was never resolved.