Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https:// site
Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https:// site
am 20.02.2008 05:50:29 von Greg Cocks
Hello,
I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) =
to get the name of the user logged on to 'my' https:// site.
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.
I started looking at $_SESSION as well... that is enough to do your head =
in if you are not used to it, like I am not!
Any suggestions gratefully received!
Cheers....
----------
Regards,
GREG COCKS
GIS Analyst V
Gcocks|at|stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https://
am 20.02.2008 06:02:30 von Jacob Kruger
Can't remember too much/clearly, but doesn't that login credential info get
stored in some or other cookie?
HTH
Jacob Kruger
Blind Biker
Skype: BlindZA
'...Fate had broken his body, but not his spirit...'
----- Original Message -----
From: "Greg Cocks"
To:
Sent: Wednesday, February 20, 2008 6:50 AM
Subject: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name
of the user logged on to 'my' https:// site
Hello,
I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) to
get the name of the user logged on to 'my' https:// site.
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.
I started looking at $_SESSION as well... that is enough to do your head in
if you are not used to it, like I am not!
Any suggestions gratefully received!
Cheers....
----------
Regards,
GREG COCKS
GIS Analyst V
Gcocks|at|stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https://
am 20.02.2008 08:20:00 von Gustav Wiberg
Hi!
It depends on version of PHP, but try with...
$username =3D $_SERVER["AUTH_USER"]
$username =3D $_SERVER["PHP_AUTH_USER"]
Se more in the server-varriables:
http://se2.php.net/reserved.variables
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Greg Cocks [mailto:gcocks@stoller.com]=20
Sent: Wednesday, February 20, 2008 5:50 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name=
of the user logged on to 'my' https:// site
Hello,
I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) to =
get the name of the user logged on to 'my' https:// site.
IT set up the site via SSL and using active directory's users (i.e., IIS an=
d Windoze...) for the logon.
Every staff member can logon with their own Windoze network credentials, wh=
ich is pretty slick as I let the network admin take care of permissions, pa=
sswords, etc through Windows Server.
Web users with limited permissions have and can be added by IT as well, wit=
h 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 s=
o 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 Pe=
rmissions for each user to differentiate their 'allowable' web page functio=
nality - 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.
I started looking at $_SESSION as well... that is enough to do your head in=
if you are not used to it, like I am not!
Any suggestions gratefully received!
Cheers....
----------
Regards,
GREG COCKS
GIS Analyst V
Gcocks|at|stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https://
am 20.02.2008 09:46:46 von Warren Vail
Sounds like you may also want to look at the single signon project
http://sourceforge.net/projects/easysso/
I'm not real up on it, but in a controlled environment, I understand it
allows users to signon to their own machine, and use that signon to =
identify
themselves to any number of servers, including apache servers running =
your
php. I believe the interface is much like Gustav mentions below, but
special software and SSL certificates establish a trusting relationship
between your apache server and the Active Directory servers (windoz =
based).
HTH,
Warren Vail
-----Original Message-----
From: Gustav Wiberg [mailto:gustav.wiberg@hmnkonsult.se]=20
Sent: Tuesday, February 19, 2008 11:20 PM
To: 'Greg Cocks'; 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get =
the
name of the user logged on to 'my' https:// site
Hi!
It depends on version of PHP, but try with...
$username =3D $_SERVER["AUTH_USER"]
$username =3D $_SERVER["PHP_AUTH_USER"]
Se more in the server-varriables:
http://se2.php.net/reserved.variables
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Greg Cocks [mailto:gcocks@stoller.com]
Sent: Wednesday, February 20, 2008 5:50 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the =
name
of the user logged on to 'my' https:// site
Hello,
I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) =
to
get the name of the user logged on to 'my' https:// site.
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.
I started looking at $_SESSION as well... that is enough to do your head =
in
if you are not used to it, like I am not!
Any suggestions gratefully received!
Cheers....
----------
Regards,
GREG COCKS
GIS Analyst V
Gcocks|at|stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https://
am 20.02.2008 18:25:15 von Greg Cocks
Gustav,
*Works like a charm! Much appreciated... SO CLEAN AND SIMPLE!*
If you or anyone feels so inclined:
$logged =3D $_SERVER["AUTH_USER"];
print $logged."
";
list($logged_on_userdomain,$logged_on_username) =3D =
split("\\",$logged);
print $logged_on_username."
";
It prints the $logged just fine as "domain\user", no speech marks of =
course.
However the spilt won't work, I guess because of the double back slash - =
gives the error:
Warning: split() [function.split]: REG_EESCAPE in ...
Told you I was a newbie! :-)
Regards,
GREG COCKS
gcocks|at|stoller.com
=20
-----Original Message-----
From: Gustav Wiberg [mailto:gustav.wiberg@hmnkonsult.se]=20
Sent: Wednesday, February 20, 2008 12:20 AM
To: Greg Cocks; 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get =
the name of the user logged on to 'my' https:// site
Hi!
It depends on version of PHP, but try with...
$username =3D $_SERVER["AUTH_USER"]
$username =3D $_SERVER["PHP_AUTH_USER"]
Se more in the server-varriables:
http://se2.php.net/reserved.variables
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Greg Cocks [mailto:gcocks@stoller.com]=20
Sent: Wednesday, February 20, 2008 5:50 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the =
name of the user logged on to 'my' https:// site
Hello,
I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) =
to get the name of the user logged on to 'my' https:// site.
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.
I started looking at $_SESSION as well... that is enough to do your head =
in if you are not used to it, like I am not!
Any suggestions gratefully received!
Cheers....
----------
Regards,
GREG COCKS
GIS Analyst V
Gcocks|at|stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Newbie - am wondering how to use PHP (?) to get thename of the user logged on to "my" https:// s
am 20.02.2008 18:27:50 von Stut
Greg Cocks wrote:
> Gustav,
>
> *Works like a charm! Much appreciated... SO CLEAN AND SIMPLE!*
>
> If you or anyone feels so inclined:
>
> $logged = $_SERVER["AUTH_USER"];
> print $logged."
";
> list($logged_on_userdomain,$logged_on_username) = split("\\",$logged);
> print $logged_on_username."
";
>
> It prints the $logged just fine as "domain\user", no speech marks of course.
>
> However the spilt won't work, I guess because of the double back slash - gives the error:
>
> Warning: split() [function.split]: REG_EESCAPE in ...
Split wants a regex. Use explode.
-Stut
--
http://stut.net/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Newbie - am wondering how to use PHP (?) to get the name of the user logged on to "my" https://
am 21.02.2008 08:00:00 von Gustav Wiberg
Hi!
How good. You're welcome. Sometimes even the simplest things are effective =
enoguh! :-)
Stut has answered about split so I won't repeat...
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Greg Cocks [mailto:gcocks@stoller.com]=20
Sent: Wednesday, February 20, 2008 6:25 PM
To: Gustav Wiberg; php-windows@lists.php.net
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the =
name of the user logged on to 'my' https:// site
Gustav,
*Works like a charm! Much appreciated... SO CLEAN AND SIMPLE!*
If you or anyone feels so inclined:
$logged =3D $_SERVER["AUTH_USER"];
print $logged."
";
list($logged_on_userdomain,$logged_on_username) =3D split("\\",$logged);
print $logged_on_username."
";
It prints the $logged just fine as "domain\user", no speech marks of course=
..
However the spilt won't work, I guess because of the double back slash - gi=
ves the error:
Warning: split() [function.split]: REG_EESCAPE in ...
Told you I was a newbie! :-)
Regards,
GREG COCKS
gcocks|at|stoller.com
=20
-----Original Message-----
From: Gustav Wiberg [mailto:gustav.wiberg@hmnkonsult.se]=20
Sent: Wednesday, February 20, 2008 12:20 AM
To: Greg Cocks; 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the =
name of the user logged on to 'my' https:// site
Hi!
It depends on version of PHP, but try with...
$username =3D $_SERVER["AUTH_USER"]
$username =3D $_SERVER["PHP_AUTH_USER"]
Se more in the server-varriables:
http://se2.php.net/reserved.variables
Best regards
/Gustav Wiberg
=20
-----Original Message-----
From: Greg Cocks [mailto:gcocks@stoller.com]=20
Sent: Wednesday, February 20, 2008 5:50 AM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Newbie - am wondering how to use PHP (?) to get the name=
of the user logged on to 'my' https:// site
Hello,
I am a (relatively) newbie to PHP - and am wondering how to use PHP (?) to =
get the name of the user logged on to 'my' https:// site.
IT set up the site via SSL and using active directory's users (i.e., IIS an=
d Windoze...) for the logon.
Every staff member can logon with their own Windoze network credentials, wh=
ich is pretty slick as I let the network admin take care of permissions, pa=
sswords, etc through Windows Server.
Web users with limited permissions have and can be added by IT as well, wit=
h 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 s=
o 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 Pe=
rmissions for each user to differentiate their 'allowable' web page functio=
nality - 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.
I started looking at $_SESSION as well... that is enough to do your head in=
if you are not used to it, like I am not!
Any suggestions gratefully received!
Cheers....
----------
Regards,
GREG COCKS
GIS Analyst V
Gcocks|at|stoller.com
S. M. Stoller Corp
105 Technology Drive, Suite 190
Broomfield, CO 80021
www.stoller.com
303-546-4300
303-443-1408 fax
303-546-4422 direct
303-828-7576 cell
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php