User Authenticaton Windows 2000

  • Thread starter Thread starter henrycortezwu
  • Start date Start date
H

henrycortezwu

Hi,
I tried many times to convert the ff code to .NET but I fail to have
it converted.

http://support.microsoft.com/default.aspx?scid=kb;en-us;279815

I would like to use the above link to authenticate the current user of
the computer in windows 2000 platform.

I have a code that works with Windows XP using the Login API, but sad
to say, it fails at Windows 2000.

Anyone could help me on this???

Thanks,
Henry :)
 
henry,

I have described below a work around, but DON'T DO IT!!!

LogonUser API fails on Windows 2000 because you need to set SE_TCB_NAME (Act
As Part Of The Operating System) & if you do that then there is no security
whatsoever in Windows 2000.

To set this attribute you can do the following:

Click START | SETTINGS | CONTROL PANEL

Click 'Administrative Tools' & Select 'Local Security Policy'

Now, expand 'Local Policies' & click on 'User Right Assignments'

In the right pane, double-click 'Act As Part Of The Operating System', add
the users you want to authenticate with the LogonUser API, click OK & OK
again.

Close the Local Security Settings dialog & now the LogonUser API will work.

NOTE:
-------

You now have no protection on this machine whatsoever. I cannot stress
enough how you should NOT change that 'Act As Part Of The Operating System'
flag!!!!!!!!!!!!!!!!!!!!!! as I described above.. Basically, FORGET ABOUT
USING THE LOGONUSER API function.

If someone hacks, deletes the entire operating system because you set this
flag then I would be the first to say 'I told you so'.

YOU HAVE BEEN WARNED!!!!!!!!!!!!!!!!!

Crouchie1998
BA (HONS) MCP MCSE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top