Forum Moderators: coopster

Message Too Old, No Replies

Access control based on different server

How to determine user rights

         

Metropolis X

9:03 am on Jan 20, 2004 (gmt 0)

10+ Year Member



Hi

I surely hope that someone can help me out with this rather (for me) challenging task I’m facing:

I have a site running on a LAN that includes several servers that have each of their own permission configuration. PHP (v4.2.2) is running on a simple WinNT with FoxServ, and it’s doing a great job – but now I need to control the user access, based on the configuration of another server (that can’t be setup to run PHP).
My idea is to put some lines of code into the index file, pointing to a file located on the access controlled server. See: “client can’t connect to the file = redirected to another site / client can connect to the file = the site continues as if nothing ever happened.
The problem here is, that the server running PHP do always have access to this server, so the returned information has to be based on the clients access permission.

Since I’m newbie in this, I happily believe that this can be done – I just don’t know how.
I tried with 'include' and 'request', but i learned that this can only be done with http and ftp (+local of course).
Can anyone give me a hint please?

jatar_k

4:49 pm on Jan 20, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Metropolis X,

This is a tough one.

Is it possible to have this server with the same permissions as the other?

If the other server can't be set up with php then maybe you need to go with asp/.NET or whatever can be set up on the other server.

Metropolis X

6:29 pm on Jan 20, 2004 (gmt 0)

10+ Year Member



Thank you very much for your answer jatar_k.

You are right - the other server needs to run some kind of serverside scripts. I think i've found a usable solution. A pretty strange (read: homemade :-)) one, but indeet usable:

The links from the PHP server redirects to a webspace controlled by the proper access rights. This is done on the client side, because it is the client that are being redirected. And belive it or not.... then it redirects back to the PHP server, using asp.

Thank you for your time.