Hi Fredrik,
> We have just installed phpwiki 1.3.6 on a Red Hat 7.3
> system with mysql.
So far so good...
> We are using htpasswd to give the users access to the
> site. It seems to work fine but when a user make a
> change in a file, the ip address is logged as the author.
First off: why use htpasswd to access the site when you already have
mysql running? It would seem that mod_auth_mysql (which I've used in RH73
and RH9, and it works great!) would be a better access control method than
the file-based htpasswd file.
The reason I suggest this is that it would likely also work better for
wiki auth. Wiki does mysql auth, right? [checks wiki] Yeah, sure it
does:
http://phpwiki.sourceforge.net/phpwiki/ExternalAuthentication
I'll be the same table can be used for both auth schemes. Why not just
unlimit the /phpwiki/ directory with apache, and let phpwiki control the
auth?
> Is it possible to log the username that you are using
> when you log on (that you have created with htpasswd)?
It's an hour of reading and ten minutes of work, but I think that this
problem should be no longer relevant.
> Earlier we used phpwiki 1.2.0 and it worked great!
I'll bet 1.2.0 uses the older method of getting the remote user name - now
I'll bet it's all looking in $_SERVER , seeing nothing, and bailing out
with using the IP instead.
- bish
|