[p4] Accessing Perforce through the web.
MElkins at brocksolutions.com
Tue Nov 28 11:14:58 PST 2006
Just as an update, I talked with support and apparently P4Web does not
work with external authentication such as Active Directory, (at least on
Windows.) This caveat seems to be absent from the documentation.
Support seems to think that it will be fixed in 2006.2, but we will see.
From: Elkins, Mark
Sent: November 28, 2006 8:27 AM
To: 'David Weintraub'
Cc: perforce-user at perforce.com
Subject: RE: RE: [p4] Accessing Perforce through the web.
I have to correct myself somewhat. I ran a test here late yesterday and
found that the authenticated browse mode (-B) does support multiple
users. However, it does not work on our production box. It seems the
source of the problem has something to do with the fact that our
production box authenticates users against our Active Directory server.
The test box uses Perforce's built-in password system. We run the p4
server at security level 3. Every other p4 client we have tried works
wonderfully with the AD authentication. Hmmm... I am going to try and
run some tests in the next few days to see if I can narrow the problem
some more. I will let you all know if I find the root of the problem,
(and hopefully a solution for it.) Thanks to all for the input.
From: David Weintraub [mailto:qazwart at gmail.com]
Sent: November 27, 2006 4:38 PM
To: Elkins, Mark
Cc: perforce-user at perforce.com
Subject: Re: RE: [p4] Accessing Perforce through the web.
Unfortunately, I'm not at work, so I can't run a test, but I believe
that multiple authenticated users are allowed in the browse only mode
(the -B switch). Users cannot submit changes, but they are restricted
to what files they can see based on the protect table.
I am not too familiar with p4web in "standard mode" It seems to run
more as a client, so only one user at a time can use it. Maybe this
isn't the case. Since the p4 client is a free download, I never really
worried too much about using p4web as a full Perforce client.
On 11/27/06, Elkins, Mark <MElkins at brocksolutions.com> wrote:
> Unfortunately I would have to argue that it does not support multiple
> AUTHENTICATED users. Yes, I can set it to browse mode, set the P4USER
> variable for the web server to some generic user. However, this
> does not enforce permissions defined in the protections table.
> For example, say I have a user named Bob. Bob has been granted access
> to //depot/Proj1/..., but has been denied list access to
> //depot/Proj2/.... I have another user named Alice. She has access to
> //depot/Proj2/..., but not //depot/Proj1/....
> Using P4Web I have found no way to enforce the above permissions using
> single P4Web instance. Bob should see //depot/Proj1/..., but not
> //depot/Proj2 when he logs in. Alice should see //depot/Proj2/...,
> not //depot/Proj1/... when she logs in.
> If I use P4Web in browser mode and a common "guest" user and
> there is no way to enforce permissions set in the protections table.
> Bob and Alice can see both projects. This violates code security.
> If I use P4Web in authenticated browser mode, I am forced to set the
> P4USER environment on the server. Now P4Web will only work for that
> user. Thus I would need separate instances of P4Web to allow Alice
> Bob to use P4Web. Unless I am mistaken, from my reading of the P4Web
> documentation and my own experimentation there is no way around this.
> From the documentation
> "At the browser's username/password prompt, you must enter the
> that matches the one P4Web was started up with. Normally, this is the
> same as your system login or account username. If you do not know your
> Perforce username, you can go to the command-line and use the p4 set
> command to view the value of P4USER."
> What I am looking for essentially is something similar to P4Web in
> authenticated browser mode, but has the ability to support
> multiple-users per instance. Does anyone know of a package that does
> -----Original Message-----
> From: David Weintraub [mailto:qazwart at gmail.com]
> Sent: November 27, 2006 1:25 PM
> To: Elkins, Mark
> Cc: perforce-user at perforce.com
> Subject: Re: [p4] Accessing Perforce through the web.
> p4web does support multiple users. To see it in action, go to
> Information on using p4web can be found here:
> On 11/27/06, Elkins, Mark <MElkins at brocksolutions.com> wrote:
> > I want to set up a central web server that allows Perforce users to
> > into a web site and view the depot files to which they have access.
> > Essentially I am looking for a (very) simplified, web-based version
> > P4V. Ideally it would:
> > 1. Support multiple users.
> > 2. Authenticate users using their P4 credentials.
> > 3. Permit users to view, (and possibly modify,) the depot files to
> > they have access.
> > 4. Deny access to those files to which the user does not have
> > I have looked at P4Web, but it really only supports one user per
> > instance. If it truly supported multiple users, then it would be
> > perfect.
> > Does anyone know if there is a product or package out there that
> > provides a multi-user web-based interface to Perforce?
> > Thanks,
> > Mark Elkins
> > _______________________________________________
> > perforce-user mailing list - perforce-user at perforce.com
> > http://maillist.perforce.com/mailman/listinfo/perforce-user
> David Weintraub
> qazwart at gmail.com
qazwart at gmail.com
More information about the perforce-user