General information
Category:
Windows API functions
Hello,
We are increasing security in all our apps. However for one division of our company, we would like to maintain new ids and passwords to a minimum. To do so, we thought of allowing the user to login with his/her nt login and password into the app.
I use the following code to get the user name from login
Declare Long WNetGetUserA in "mpr.dll" As GetUserName ;
STRING @lc0, STRING @lcBuffer, LONG @lnSize
lnRetCode = GetUserName("", @lcBuffer, @lnSize )
lcUserName = left(lcBuffer, at(chr(0), lcBuffer)-1)
g_user = lcUserName
Now I need to authenticate the user's password (which will be the same as
their NT authentication) by validating it against the NT's password.
Can you please tell me how can I achieve this functionality ?
Thanks
Dinesh
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only