Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Verify the user login id and password

0 views
Skip to first unread message

Su XuGuang

unread,
Sep 3, 1996, 3:00:00 AM9/3/96
to

Hi, everyone,
I am trying to write a client/server program, the client side is running on
Win95 and server is NT. My program imports the users and groups defined on
NT server. So I want to let the NT to verify the user login id and password
for me, just like on Win95, the network password for Microsoft networking
is checked by the domain server.

I am not sure if I am in the right approach or not. Since I can not find an
API that can be called from Win95 to do this, I plan to write an RPC server
to call the LogonUser() API on the NT server and pass the result back to
client.

So I wrote a test program to call it on NT, but the process that calls it
should have SE_TCB_NAME privilege. I used the AdjustTokenPrivilege() to
enable the privilege, but it failed(I logged on as an administrator).

Does anyone know what should be set before calling these APIs, and how to
set it? Or, am I using the right APIs at all? How should I do the checking
of user name and password? Am I on the totally wrong way to do this?

Thank very much for any help!

0 new messages