Hi
I have a simple piece of code that get the persons
username and then queries the domain for there full name.
We were on a RM connect 2 system before and the code
worked fine. Now though when after we switched to a 2000
domain system without RM I can not retrieve the details.
This is the piece of code it fails at:
Set oUser = GetObject("WinNT://[DOMAIN]/[USERNAME]")
I have tried it by inserting the domain name and a valid
username into that and it just does not work when it did
before.
Could it be the domain controller not allowing IIS on a
seperate machine access?
The IIS server is as follows:
Win 2k server SP4
PHP (latest ver)
Mysql (latest ver)

The IIS machine is only on the domain it does nothing with
active directory etc. All it does is the intranet site.

Cheers for the help

Shaun Garriock

RE: Domain switch stops me getting full name by tdevere

tdevere
Thu Aug 14 15:41:32 CDT 2003

Hello Shaun,

I am trying to understand what you need...

First thing first - you should consider posting the language group you are
creating your pages in (ASP, ASP.net etc...)

Next, if you want the user name why don't you just query the
ServerVariables?

Dim UserName as String = Request.ServerVariables("Auth_User")

If you want to query AD for the user name and password, it's going to be a
more expensive task but it can be done with ADSI or WMI (may others).

Does this help?

Thank you,

Tony DeVere [MSFT]
Microsoft IIS
Newsgroup Support
tdevere@online.microsoft.com

"Please do not send email directly to this alias. This is our online
account name for newsgroup participation only."

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.