[Mono-list] How to validate user name and password
poeticvenom at gmail.com
Tue May 26 19:17:05 EDT 2009
I'm trying to validate the user name and password for the computer's local
users. I have this working for windows by using the LogonUser API.
private static extern bool LogonUser(String lpszUsername, String lpszDomain,
String lpszPassword, int dwLogonType, int dwLogonProvider, ref IntPtr
I do this so I can get a WindowsIdentity object from the returned token. I
found out that I can get a WindowsIdentity object by using the username as
the token in the WindowsIdentity constructor. This allows my application to
perform what it needs to, but I just need to make sure that the password
provided is correct. Is this something that I would have to end up using
System.DirectoryServices for ?
View this message in context: http://www.nabble.com/How-to-validate-user-name-and-password-tp23732306p23732306.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list