How can i Login In my C# application using windows Login details? or export my window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ThandoSiphambo
    New Member
    • Oct 2012
    • 1

    How can i Login In my C# application using windows Login details? or export my window

    I have an application that is connected in to a sql database, instead of connecting to the database, i want it to use the windows usernames and passwords to login into my application.

    windows usernames and passwords are stored in this location:

    c:\windows\syst em32\config\sam

    But how can i use this as my database or export usernames and passwords to sql.....
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Windows doesn't store the password, it only stores the hash. Not the same thing.

    If we're talking about SQL Server, then it has native Windows authentication. It can authenticate against the current credentials of whoever is logged in.

    Comment

    Working...