Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Authentication code

Authentication code

Scheduled Pinned Locked Moved Visual Basic
sysadminsecurity
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anu_Bala
    wrote on last edited by
    #1

    Hi, In my client application,it requires to access a file in the remote server station,which requires authentication(User name and password)in VB. Provide me any sample code that has code to authenticate remote PC file access.

    B F 2 Replies Last reply
    0
    • A Anu_Bala

      Hi, In my client application,it requires to access a file in the remote server station,which requires authentication(User name and password)in VB. Provide me any sample code that has code to authenticate remote PC file access.

      B Offline
      B Offline
      balaji t
      wrote on last edited by
      #2

      hi bala, try to give the user name and password in the appsettings in configuration settings web.config file and try to run. T.Balaji

      1 Reply Last reply
      0
      • A Anu_Bala

        Hi, In my client application,it requires to access a file in the remote server station,which requires authentication(User name and password)in VB. Provide me any sample code that has code to authenticate remote PC file access.

        F Offline
        F Offline
        FrankyT
        wrote on last edited by
        #3

        VB Forms or ASP(1/2)? in ASP you set Impersonation to a specific user account in the web.config. Google it and you'll find many walkthroughs. you can also have your app run in IIS as another user (by defualt your user is annomoyus) in the inetmngr This is security sensitive stuff so I'd work with a server admin (who knows IIS) when your reviewing possibilities on this one, if it's a work project. In windows forms an app runs under the context of the user session the app is spwaned from, unless its a service, in which case the user account is set in the installer or the services.msc. Just give the desktop users permissions to the directory, or add them to a group and provide it the needed permissions. Hope that helps, Frank hey...slang is the vernacular for the vernacular...wow

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups