473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Security Error LogonUser

I use LogonUser for user authentication against AD. When I run this in XP is
works fine. But it gives me a Win32 Error 1314 (ERROR_PRIVILEGE_NOT_HELD) in
Win 2000. Any idea why and how do I solve it?
Dec 11 '06 #1
1 1916
"Sajid" <Sa***@discussions.microsoft.comwrote in message
news:48**********************************@microsof t.com...
>I use LogonUser for user authentication against AD. When I run this in XP
is
works fine. But it gives me a Win32 Error 1314 (ERROR_PRIVILEGE_NOT_HELD)
in
Win 2000. Any idea why and how do I solve it?
From the online help:

Windows 2000: The process calling LogonUser requires the SE_TCB_NAME
privilege. If the calling process does not have this privilege, LogonUser
fails and GetLastError returns ERROR_PRIVILEGE_NOT_HELD. In some cases, the
process that calls LogonUser must also have the SE_CHANGE_NOTIFY_NAME
privilege enabled; otherwise, LogonUser fails and GetLastError returns
ERROR_ACCESS_DENIED. This privilege is not required for the local system
account or accounts that are members of the administrators group. By
default, SE_CHANGE_NOTIFY_NAME is enabled for all users, but some
administrators may disable it for everyone. For more information about
privileges, see Privileges.

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
Dec 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rich | last post by:
I am running IIS6 on a Win2k3 server. I have an ASP.Net app (C#) that a user logs into and then I use LogonUser to validate them and log them onto the server. I have Windows Authentication ONLY...
3
by: Zeno Lee | last post by:
I'm trying to authenticate a user against a windows network. I want it to work across any kind of windows network from NT 4.0 up to Windows 2003 ADS. So far I've been using DirectoryEntry and...
5
by: Nick | last post by:
I am working on an application for a client that will involve using remoting. They do not want to use integrated security so I was going to store usernames and hashed passwords in a SQL Database. ...
0
by: Senthamarai | last post by:
I have a list of .WMV files stored in a network share. Only one user will have permission to view the share contents. I want my program to impersonate that particular user while accessing and...
9
by: ivang | last post by:
Hello, All! How can I check if I have access to specific network resource? Or, having user's domain name and password check if he or she has access to network resource? Thanks.
29
by: Patrick | last post by:
I have the following code, which regardless which works fine and logs to the EventViewer regardless of whether <processModel/> section of machine.config is set to username="SYSTEM" or "machine" ...
8
by: Manfred Braun | last post by:
Hello All! I am writing a management application, which has to access remote machines registry via System.Diagnostics.EventLog.CreateEventSource . For each machine, I connect to, I create a...
4
by: MSSQLServerDeveloper | last post by:
I am running in a windows 2000 environment and have the following scenario / question. I have a vb.net application. Before allowing the user the go into the app, I would like to validate...
3
by: Robinson | last post by:
May I be so bold as to run a scenario by you and solicit some advice on the best way to proceed? I have a database (SQL Server), which stores paths of image files on disk (on the server). I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.