Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nt authenticate
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Nt authenticate
Miscellaneous
Thread ID:
00912466
Message ID:
00912466
Views:
52
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
Map
View

Click here to load this message in the networking platform