Authentication: Addressing the user variable
| From: | Jason End | Date: | Fri, 20 Jun 2003 07:50:39 +0000 |
| Subject: | Authentication: Addressing the user variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-152281@lists.php.net to get a copy of this message | ||
I'm using LDAP to authenticate my users. login.php and
any script that requires authentication start off with
the following code:
--
session_start();
if (session_is_registered("valid_user")) {
header( "Location: admin.php" );
--
The ldap binds as such:
ldap_bind($ds,
"uid=$uid,ou=people,dc=server,dc=domain,dc=dom",
$passw);
What I want is to be able to display AND use the $uid
throughout the other scripts.
How can I do this?
thanks,
Jay
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com