[thelist] ASP Question - Querying data from NT login information
Mike King
_redroom_ at yahoo.co.uk
Thu Aug 24 11:27:15 CDT 2000
Ooops sausage fingers =)
Line 7 should be
Set UserObj = GetObject("WinNT://" & strServer & "/" &_
Cheers
mk
ps
I think you'll need the MS ADSI kit as well =)
--- Mike King <_redroom_ at yahoo.co.uk> wrote:
> Here's a little bit of code that pulls the data you need:
>
> <%
> Dim UserObj, strServer, strDom, strFullName
>
> strDom = "DomainName\" ' the domain name with a backslah
> strServer = "CoPDC"
>
> Set UserObj = GetObject("WinNT://" & sreServer & "/" &_
> Replace(Request.ServerVariables("LOGON_USER"), strDom, ""))
> strFullName = UserObj.get("Fullname")
>
> Set UserObj = Nothing
>
> Response.Write "Logged in as " & strFullName
> %>
=====
Get your free wombles.com email address @
http://www.wombles.com
e. mike.king at redroom.co.uk
t. 07971 292 999
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
More information about the thelist
mailing list