Skip site navigation (1) Skip section navigation (2)

Wondering how to get the name of the name of the user logged on to 'my' https:// site via PHP

From: "Greg Cocks" <gcocks(at)stoller(dot)com>
To: "PostgreSQL List - Novice" <pgsql-novice(at)postgresql(dot)org>
Subject: Wondering how to get the name of the name of the user logged on to 'my' https:// site via PHP
Date: 2008-02-20 02:30:29
Message-ID: 66F6CF82BF58CE4DB4285BE816B297E846FAE7@tribble.SMStoller.com (view raw or flat)
Thread:
Lists: pgsql-novice
Hello,

 

I am a (relatively) newbie to PHP - and am wondering how to get the name
of the user logged on to 'my' https:// site via PHP.

 

IT set up the site via SSL and using active directory's users (i.e., IIS
and Windoze...) for the logon.

 

Every staff member can logon with their own Windoze network credentials,
which is pretty slick as I let the network admin take care of
permissions, passwords, etc through Windows Server.

 

Web users with limited permissions have and can be added by IT as well,
with my input on permission levels.

 

Anyway... the user has the ability to write some stuff back to a
PostgreSQL database and I would like to keep track of who is logged on
that session so I can append their username into the "change log" of the
database - *but how do I get the username?*"

 

(Note that I could potentially see myself integrating (sic) Windows User
Permissions for each user to differentiate their 'allowable' web page
functionality - but that is in the medium to far future I think...)

 

I have been exploring LDAP - but it seems like a hammer-and-walnut
approach, at least to my untrained eye.

 

Any suggestions gratefully received!

 

Cheers....

----------
Regards,
GREG COCKS
GIS Analyst V
gcocks(at)stoller(dot)com <blocked::mailto:gcocks(at)stoller(dot)com> 
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com <blocked::http://www.stoller.com/> 
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell

 

Responses

pgsql-novice by date

Next:From: Phillip SmithDate: 2008-02-20 03:24:17
Subject: Re: Wondering how to get the name of the name of the user logged on to 'my' https:// site via PHP
Previous:From: LeoDate: 2008-02-19 14:34:20
Subject: Re: Full text indexing of documents

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group