LogonUser failed error

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default LogonUser failed error

    When I run my application , the LogonUser method fails the exception is
    "LogonUser failed with error code :1314".
    I know the error is because of some privileges .

    I am using Windows 2000 sp4. I have not enabled the SE_TCB_NAME previlege.
    Do we need to enable this ?

    I enabled privileges using this:

    ManagementObject mo = new ManagementObject(new ManagementPath( ));
    mo.Scope.Options.EnablePrivileges = true;

    I am still getting this same error.


    I also checked System.Security.Principal.WindowsIdentity().GetCur rent.Name
    It returns "@\machine_name\ASPNET"

    But to the user "ABC" I have enabled the TCB privileges .

    What am I missing ?



    Nimi Guest

  2. Similar Questions and Discussions

    1. Error 403 Failed to read heders Error for long-runningCFMAIL and CFINDEX command
      I have two different pages with long-running scripts on which I am recieving the following error: Error - 403 Failed to read headers to server:...
    2. midl\oleaut32.dll : error MIDL2020 : error generating type library : LayOut failed : IXMLDOMNode
      Hi there Im new to C++ and have inherited a C++ dll that wont compile. Its coplaing about the following midl\oleaut32.dll : error MIDL2020 :...
    3. LogonUser failed with error code : 1314
      Im trying to programmatically authenticate a user against NT under windows 2000. I use the LogonUser API. Realizing that the call needs SYSTEM...
    4. Dialer Failed Error on tty2a I/O Error 5
      Hello, I have a SCO OS 5.05 server with a modem to allow dial-in access for people off-site. Recently, it is acting up and not remaining enabled....
    5. An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
      Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources...
  3. #2

    Default Re: LogonUser failed error

    Hi,

    If I understand correctly that you are trying to invoke LogonUser (in
    AdvApi32.dll), the documentation for the function clearly states that for
    Windows 2000 the process calling LogonUser needs to have SE_TCB_NAME (Act as
    part of the operating system) privilege.

    [url]http://msdn.microsoft.com/library/en-us/secauthn/security/logonuser.asp[/url]
    (in the remarks section)

    Greetings
    Martin
    "Nimi" <anonymous@discussions.com> wrote in message
    news:OPwOqxesEHA.3412@TK2MSFTNGP14.phx.gbl...
    > When I run my application , the LogonUser method fails the exception is
    > "LogonUser failed with error code :1314".
    > I know the error is because of some privileges .
    >
    > I am using Windows 2000 sp4. I have not enabled the SE_TCB_NAME
    previlege.
    > Do we need to enable this ?
    >
    > I enabled privileges using this:
    >
    > ManagementObject mo = new ManagementObject(new ManagementPath( ));
    > mo.Scope.Options.EnablePrivileges = true;
    >
    > I am still getting this same error.
    >
    >
    > I also checked System.Security.Principal.WindowsIdentity().GetCur rent.Name
    > It returns "@\machine_name\ASPNET"
    >
    > But to the user "ABC" I have enabled the TCB privileges .
    >
    > What am I missing ?
    >
    >
    >

    Martin Dechev Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139