Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetUserName call won't return network username 1

Status
Not open for further replies.

petertickler

Programmer
Oct 1, 2002
67
GB
I have been controlling access to my Intranet successfully via a call to the GetUserName API in Delphi (6).

However, I have just got a new test web server, set up IIS on it, and when I call the GetUserName function, instead off returning the network user name, it returns
IUSR_NADINE where NADINE is the name of the web server.

I presume there must be a difference in the way NADINE is set up compared to its predecessor (which is completely defunct, so I can't go back to it!).

Can anyone suggest what sort of things I might check on the web server?

Thanks.

Peter Tickler
ptickler@potato.org.uk

 
This is because you have Anonymous access turned on. It will not authenticate the username from the accounts domain because it is not using any type of authentication. This is why you always see the IUSR account. The website is configured for anonymous access.. take it off, this should resolve your issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top