Getting Username from a windows domain...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pedrokas
Forum Commoner
Posts: 32
Joined: Thu Jan 15, 2004 10:53 am
Location: Lisboa, Portugal

Getting Username from a windows domain...

Post by pedrokas »

I ppl.

i´ve tried to get a username from my intranet (windows 2000 server)domain.
The security in my folder is set to everyone (read,execute,list).
i tried to use $_SERVER("REMOTE_USER") and get an undefined index: REMOTE_USER.

so... how can i get the domain username????

tnks.

Pedro
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Re: Getting Username from a windows domain...

Post by TheBentinel.com »

I think REMOTE_USER and LOGON_USER are only populated if the server is set to authenticate. If you're allowing anonymous access, then I don't think you'll get a username.
User avatar
pedrokas
Forum Commoner
Posts: 32
Joined: Thu Jan 15, 2004 10:53 am
Location: Lisboa, Portugal

Post by pedrokas »

that solve the case the host was with anonimous on...

tku


u ppl r fanastik!!!
the important is not to know much...
but to do much with the little we know
Post Reply