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. C#
  4. How to retreive domain username and password

How to retreive domain username and password

Scheduled Pinned Locked Moved C#
tutorial
4 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.
  • P Offline
    P Offline
    Prajin
    wrote on last edited by
    #1

    Hi, Is there any way to retreive domain username and password of a logged in user programatically.Please let me know if you have any suggestions Prajin

    O S 2 Replies Last reply
    0
    • P Prajin

      Hi, Is there any way to retreive domain username and password of a logged in user programatically.Please let me know if you have any suggestions Prajin

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      You can't retrive the password ... that would be one hell of a security hole! Just imagine anything you had running on your computer being able to get your password and send it back to the author. As for the username, check out the System.Environment class.

      1 Reply Last reply
      0
      • P Prajin

        Hi, Is there any way to retreive domain username and password of a logged in user programatically.Please let me know if you have any suggestions Prajin

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        You can retreive the User name only. We cannot get the Password. check out the System.Environment class. System.Environment[^]

        Regards, Satips.:rose:

        O 1 Reply Last reply
        0
        • S Sathesh Sakthivel

          You can retreive the User name only. We cannot get the Password. check out the System.Environment class. System.Environment[^]

          Regards, Satips.:rose:

          O Offline
          O Offline
          originSH
          wrote on last edited by
          #4

          ooo new colour on your name? :)

          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