Results 1 to 3 of 3

Thread: Retrive info about identity of a user???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2000
    Location
    Kalix, Norrbotten, SWEDEN
    Posts
    343

    Retrive info about identity of a user???

    I need to retrive info about a user to beable to verify
    that the user is who he/she is supposed to be.

    I have a form that is send by CDONTS to a company mail.

    What I would like to know about the user is default email adress perhaps computer name, and so on.

    The retrivial of the information must be done with asp or javascript. Can it be done???

    /Smirre
    Visual Basic
    C, C++
    Java
    Access
    SQL Server

    MCP, MCSD

  2. #2
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Hi,

    There are few ways you get details

    1/ If you use NT Workstations you can use request.servervaribles("LOCAL_USER") to return the logged in user. It returns something like this
    DOMAIN\john_smith
    but you can use this code to get the username from it.

    Code:
    Mid(Request.ServerVariables("Logon_User"),InStr(Request.ServerVariables("Logon_User"),"\")+1)
    also, you must also change permissions on the file(s) using IIS admin console and turn on NT Challenge Response and turn off Anomymous Login.


    2/ You can't get the computers login name as its a great security risk but you could try this software but I couldn't get it to work.

    http://www.pstruh.cz/help/tcpip/


    3/ If your users use static IP addresses you could use request.servervariables("REMOTE_ADDR") and compare it to a database.


    Heres a list of Environment (Server) Varables you might find useful

    http://www.atomicdesigns.net/adime/perl/lists/env.html


    Hope this helps
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  3. #3
    Member
    Join Date
    Feb 2002
    Posts
    52
    Strangely enough, I have almost exactly the same problem, except all I need is the users email address. I already use there username throughout the site but would like to send mails to people without having to store there email addresses in a db (and then chek it against a username).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width