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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Use windows authentication in client/server application

Use windows authentication in client/server application

Scheduled Pinned Locked Moved C#
securityquestionsysadminwindows-admin
2 Posts 2 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.
  • L Offline
    L Offline
    Le Thanh Cong
    wrote on last edited by
    #1

    I write a application client/server (windows form). Both client & server run in a Active Directory domain. When client connect to server, server will get IP of client. Base on IP, server check current user logon in client PC, determines if the user has been authenticated by Windows. At client, I can use System.Security.Principal.WindowsIdentity.GetCurrent() to authenticate user but at server, I don't know way authenticate remote user. In case, what is solution? System.DirectoryService? conglt

    D 1 Reply Last reply
    0
    • L Le Thanh Cong

      I write a application client/server (windows form). Both client & server run in a Active Directory domain. When client connect to server, server will get IP of client. Base on IP, server check current user logon in client PC, determines if the user has been authenticated by Windows. At client, I can use System.Security.Principal.WindowsIdentity.GetCurrent() to authenticate user but at server, I don't know way authenticate remote user. In case, what is solution? System.DirectoryService? conglt

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Ummm, there's no need to check to see if Windows authenticated the person or not. If the authentication failed, that person would not be logged onto Windows, and therefore, there won't be a user logged on. All you really need to do is on the client side, pass the clients WindowsIdentity (use GetCurrent), to the server. The server will then have everything it needs to know about the user. Dave Kreskowiak Microsoft MVP - Visual Basic

      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