Reputation: 12912
I am on machine "MACHINEA" in my WiFi or LAN network, and am trying to authenticate a user with username "testusername" and password "testpassword" on machine "MACHINEB" in my WiFi network. I don't have a domain controller on this network. I want to validate credentials on a regular machine, just because it is visible on the network. I would like a solution or suggestion in C#, but I am open to other suggestions in other languages if I can fork into a different process that can return a value to me in a different language (if possible, please explain how I could do this as well).
Upvotes: 0
Views: 923
Reputation: 55402
I don't know what the equivalent in C# is but in C you can do this using the WNetAddConnection2
function. Note that this requires that you don't already have a connection to the computer, and that the computer is configured for authentication (i.e. simple file sharing is turned off.) You don't need to specify a local name for the connection.
Upvotes: 1