httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Sandells <M.J.Sande...@liverpool.ac.uk>
Subject Re: [users@httpd] Fetching pages from a user's home filestore on windows
Date Thu, 24 Apr 2008 10:31:12 GMT
On 16/04/2008 15:35, William A. Rowe, Jr. wrote:

> See what mod_userdir on win32 has to say about it... my only 
> question is whether or not apr is returning the 'local' home path 
> or the remote one in your case.  Of course you must first change 
> the "run as" user for the service to a user account with read 
> access to these files and the ability to browse the directories 
> from root (//foo/bar/) up to the path of their home.

I've had chance to spend some more time on this, but I'm still not
getting anywhere.

Apache is running as a user who has permissions to the filestore in
question. I can map drives etc as that user and see the files. I'm
also using a remote document root, specified as a UNC path to the same
area of filestore, and this works without problems.

The problem is that it does not appear to be looking up the home
directory attribute at all. If I specify;

UserDir "public.www"

in the httpd-userdir.conf, then accessing http://myserver/~user
results in a file not found error for [DOCUMENTROOT]/~user. At no
point does the home directory attribute of 'user' appear in the error
log, even with logging set to debug. It is as if the "~" were being
ignored.

I've tested this with both local users on the machine where apache is
being run, and domain users. (The machine is a member of the domain,
and the user running apache is a domain user.)

However, if I change userdir so that it does not involve a home
directory lookup;

UserDir "//server/share/users/*/public.www"

then it works (so permissions are OK).

BUT, this will not work in production as there is no single path that
covers all the users (there will be at least 12 different values for
'share').


I've also looked at the home directory attributes in the domain. The
GUI appears to offer two different settings for user home directories;

- Local path: [string]
or
- Connect [drive letter] to [string]

In practice, there are only two attributes under the covers -
"homeDirectory" and "homeDrive". "homeDirectory" corresponds to the
[string] in BOTH of the settings above. Whether it appears in one box
or the other depends on whether "homeDrive" is set or unset (tested
via changing things around and looking at the resulting attributes via
LDAP). I've tried this both ways, but it makes no difference.
mod_userdir on win32 does not appear to be looking at the
homeDirectory attribute in the first place.

Anyone any other suggestions? Any other places I could ask? Any other
way of achieving the same end result?

Mike
-- 
Mike Sandells
The University of Liverpool - Computing Services Department
Work: mikejs@liv.ac.uk  http://www.liv.ac.uk/csd  0151 794 4437/7789
Home: mike@mikejs.com   http://www.mikejs.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message