ERROR (0): AdjustTokenPrivileges failed - (1300) Not all the referenced accesslevels are assigned to the caller

Hi

For an entire location of notes user, their clients crash with a ‘nsd is running’ information. At the top of the errofile generated, there is the following text:

“ERROR (0): AdjustTokenPrivileges failed - (1300) Not all the referenced accesslevels are assigned to the caller”

(This is translated from Norwegian, “ERROR (0): AdjustTokenPrivileges failed - (1300) Ikke alle de refererte tilgangsnivåene er tilordnet kalleren.”)

Does anyone know what might be the cause here?

Thanks

Subject: ERROR (0): AdjustTokenPrivileges failed - (1300) Not all the referenced accesslevels are assigned to the caller

From Doc #1105167 in the Notes Knowledge Base:

Users running a Notes Client on a Windows XP Professional platform in a limited user environment or users on any W32 platform logged in without “Administrator” priviledges, is unable to generate an NSD log file when crashing. The following error is generated:

ERROR (0): AdjustTokenPrivileges failed - (1300) Not all privileges referenced are assigned to the caller.

This was supposed to be fixed in 6.0.2. Is your server 6.5.3 or are your clients 6.5.3?

Subject: RE: ERROR (0): AdjustTokenPrivileges failed - (1300) Not all the referenced accesslevels are assigned to the caller

Clients are all 6.5.3. But the NSD log file is indeed created (on the users home directory, where their data directory resides).

Here is the start of the log file:

ERROR (0): AdjustTokenPrivileges failed - (1300) Ikke alle de refererte tilgangsnivåene er tilordnet kalleren.

ERROR (0): AdjustTokenPrivileges failed - (1300) Not all the referenced accesslevels are assigned to the caller

search path: .;C:\WINDOWS

ERROR (4): can’t attach to process [ ?:0004] - (5) access denied.

ERROR (4): can’t attach to process [ smss:0164] - (5) access denied.

ERROR (4): can’t attach to process [ csrss:0194] - (5) access denied.

ERROR (4): can’t attach to process [winlogon:01b4] - (5) access denied.

ERROR (4): can’t attach to process [services:01e0] - (5) access denied.

ERROR (4): can’t attach to process [ lsass:01ec] - (5) access denied.

ERROR (4): can’t attach to process [nslsvice:0288] - (5) access denied.

ERROR (4): can’t attach to process [ nsl:02a4] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:02c4] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:02f8] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:0374] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:039c] - (5) access denied.

ERROR (4): can’t attach to process [ spoolsv:0408] - (5) access denied.

ERROR (4): can’t attach to process [ mdm:04b0] - (5) access denied.

ERROR (4): can’t attach to process [ ntmulti:04fc] - (5) access denied.

ERROR (4): can’t attach to process [ Zanda:0514] - (5) access denied.

ERROR (4): can’t attach to process [ Njeeves:0630] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:0e78] - (5) access denied.

ERROR (4): can’t attach to process [ Nvcoas:0198] - (5) access denied.

ERROR (4): can’t attach to process [Nvcsched:0dd4] - (5) access denied.

Host Name : DIRTRNWS008

User Name : the.user.is.listed.here

Date : Tue May 09 08:57:08 2006

Windows Dir : C:\WINDOWS

Arguments : “C:\lotus\notes\nsd.exe” -dumpandkill -termstatus 1

OSVersion : Windows XP 5.1 (Build 2600), PlatID=2, Service Pack 1 (1 Processor)

ERROR (4): can’t attach to process [ ?:0004] - (5) access denied.

ERROR (4): can’t attach to process [ smss:0164] - (5) access denied.

ERROR (4): can’t attach to process [ csrss:0194] - (5) access denied.

ERROR (4): can’t attach to process [winlogon:01b4] - (5) access denied.

ERROR (4): can’t attach to process [services:01e0] - (5) access denied.

ERROR (4): can’t attach to process [ lsass:01ec] - (5) access denied.

ERROR (4): can’t attach to process [nslsvice:0288] - (5) access denied.

ERROR (4): can’t attach to process [ nsl:02a4] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:02c4] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:02f8] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:0374] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:039c] - (5) access denied.

ERROR (4): can’t attach to process [ spoolsv:0408] - (5) access denied.

ERROR (4): can’t attach to process [ mdm:04b0] - (5) access denied.

ERROR (4): can’t attach to process [ ntmulti:04fc] - (5) access denied.

ERROR (4): can’t attach to process [ Zanda:0514] - (5) access denied.

ERROR (4): can’t attach to process [ Njeeves:0630] - (5) access denied.

ERROR (4): can’t attach to process [ svchost:0e78] - (5) access denied.

ERROR (4): can’t attach to process [ Nvcoas:0198] - (5) access denied.

ERROR (4): can’t attach to process [Nvcsched:0dd4] - (5) access denied.

INFO (0): can’t open file C:\WINDOWS\notesnsd.ini

INFO (0): Found 2 Notes processes, matched 2

→ Instance# 1 : (current)

            Ini File   : h:\notesr5\notes.ini

            Data Dir   : H:\NotesR5

            Prog Dir   : C:\lotus\notes

            Notes Build: Release 6.5.3 September 14, 2004             

        Proc List:

              C:\lotus\notes\NLNOTES.EXE (5bc)

              C:\lotus\notes\ntaskldr.EXE (548)

DBG(0fb0) 08:57:09

@@@@@@@@@@@@@@@@@ Process Table @@@@@@@@@@@@@@@@@

Active Users:

UID Name

INFO PID PPID UID STIME COMMAND

    0000 0000     0         ??? []

    07e8 0c8c     0 05/09 07:36:27 [Explorer:07e8]

    08cc 07e8     0 05/09 07:36:30   [   hkcmd:08cc]

    0860 07e8     0 05/09 07:36:30   [     ZLH:0860]

    0b24 07e8     0 05/09 07:36:31   [  ctfmon:0b24]

    0eec 07e8     0 05/09 07:40:45   [iexplore:0eec]

    0844 07e8     0 05/09 07:40:51   [     SBN:0844]

    0bc0 0fa0     0 05/09 07:40:31 [MSACCESS:0bc0]

 -> 05bc 0de8     0 05/09 07:41:22 [ NLNOTES:05bc]

 -> 0548 05bc     0 05/09 07:42:04   [ntaskldr:0548]

    0178 05bc     0 05/09 08:57:08   [     nsd:0178]

    0b98 0858     0 05/09 07:43:11 [   cclaw:0b98]

INFO (0): Starting Debugger

** Attach to [ NLNOTES:05bc]

=== Attach to C:\lotus\notes\NLNOTES.EXE (0x5bc)

Load module: base=0x00400000, size= 1040384 C:\lotus\notes\NLNOTES.EXE

Load module: base=0x77f50000, size= 684032 C:\WINDOWS\System32\ntdll.dll

Load module: base=0x77e60000, size= 946176 C:\WINDOWS\system32\kernel32.dll

Load module: base=0x61180000, size= 17375232 C:\lotus\notes\nnotesws.dll

Load module: base=0x76770000, size= 32768 C:\WINDOWS\System32\SHFOLDER.dll

Load module: base=0x77dc0000, size= 638976 C:\WINDOWS\system32\ADVAPI32.dll

Load module: base=0x78000000, size= 552960 C:\WINDOWS\system32\RPCRT4.dll

Load module: base=0x60000000, size= 13709312 C:\lotus\notes\nnotes.dll

Load module: base=0x00500000, size= 1400832 C:\lotus\notes\nxmlpar.dll

Load module: base=0x62320000, size= 98304 C:\lotus\notes\nxmlcommon.dll

Load module: base=0x77c00000, size= 339968 C:\WINDOWS\system32\msvcrt.dll

Load module: base=0x00380000, size= 380928 C:\lotus\notes\js32.dll

Load module: base=0x62350000, size= 987136 C:\lotus\notes\NLSCCSTR.DLL

Load module: base=0x77110000, size= 569344 C:\WINDOWS\system32\OLEAUT32.dll

Load module: base=0x4fec0000, size= 1204224 C:\WINDOWS\system32\ole32.dll

Load module: base=0x7f000000, size= 270336 C:\WINDOWS\system32\GDI32.dll

Load module: base=0x77d30000, size= 577536 C:\WINDOWS\system32\USER32.dll

Load module: base=0x76390000, size= 282624 C:\WINDOWS\system32\comdlg32.dll

Load module: base=0x772c0000, size= 417792 C:\WINDOWS\system32\SHLWAPI.dll

Load module: base=0x77330000, size= 569344 C:\WINDOWS\system32\comctl32.dll

Load module: base=0x00660000, size= 8376320 C:\WINDOWS\system32\SHELL32.dll

Load module: base=0x71ac0000, size= 32768 C:\WINDOWS\System32\wsock32.dll

Load module: base=0x71aa0000, size= 86016 C:\WINDOWS\system32\WS2_32.dll

Load module: base=0x71a90000, size= 32768 C:\WINDOWS\system32\WS2HELP.dll

Load module: base=0x62950000, size= 24576 C:\lotus\notes\ndgts.dll

Load module: base=0x18200000, size= 188416 C:\lotus\notes\LTOUIN22.dll

Load module: base=0x72fd0000, size= 143360 C:\WINDOWS\System32\WINSPOOL.DRV

Load module: base=0x624b0000, size= 45056 C:\lotus\notes\nplugins.dll

Load module: base=0x77bf0000, size= 28672 C:\WINDOWS\system32\VERSION.dll

Load module: base=0x78090000, size= 937984 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.1740_x-ww_7cb8ab44\comctl32.dll

Load module: base=0x5b290000, size= 212992 C:\WINDOWS\System32\UxTheme.dll

Load module: base=0x746f0000, size= 278528 C:\WINDOWS\System32\MSCTF.dll

Load module: base=0x624d0000, size= 888832 C:\lotus\notes\NSTRINGS.DLL

Load module: base=0x76360000, size= 20480 C:\WINDOWS\System32\MSIMG32.dll

Load module: base=0x74c50000, size= 180224 C:\WINDOWS\System32\oleacc.dll

Load module: base=0x76060000, size= 397312 C:\WINDOWS\System32\MSVCP60.dll

Load module: base=0x72f70000, size= 368640 C:\WINDOWS\system32\usp10.DLL

Load module: base=0x7a170000, size= 524288 C:\WINDOWS\System32\CLBCATQ.DLL

Load module: base=0x77040000, size= 815104 C:\WINDOWS\System32\COMRes.dll

Load module: base=0x625b0000, size= 24576 C:\lotus\notes\namhook.DLL

Load module: base=0x625d0000, size= 36864 C:\lotus\notes\nTCP.DLL

Load module: base=0x625f0000, size= 57344 C:\lotus\notes\nNETBIOS.DLL

Load module: base=0x71c10000, size= 319488 C:\WINDOWS\System32\NETAPI32.dll

Load module: base=0x62610000, size= 81920 C:\lotus\notes\nNTCP.DLL

Load module: base=0x71a40000, size= 245760 C:\WINDOWS\system32\mswsock.dll

Load module: base=0x71a80000, size= 32768 C:\WINDOWS\System32\wshtcpip.dll

Load module: base=0x76f10000, size= 151552 C:\WINDOWS\System32\DNSAPI.dll

Load module: base=0x76fa0000, size= 28672 C:\WINDOWS\System32\winrnr.dll

Load module: base=0x76f50000, size= 184320 C:\WINDOWS\system32\WLDAP32.dll

Load module: base=0x76fb0000, size= 20480 C:\WINDOWS\System32\rasadhlp.dll

Load module: base=0x76660000, size= 946176 C:\WINDOWS\System32\SETUPAPI.dll

Load module: base=0x052f0000, size= 32768 C:\lotus\notes\naldaemn.DLL

Load module: base=0x06900000, size= 1589248 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\HPBF321G.DLL

Load module: base=0x06e90000, size= 2076672 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\HPBF321E.DLL

Load module: base=0x6ec20000, size= 233472 C:\WINDOWS\System32\COMPSTUI.dll

############################################################

thread 1/8: [ NLNOTES:05bc:0b0c]

FP=0013d764, PC=7ffe0304, SP=0013d700, stkbase=00040000, stksize=49152

############################################################

[ 1] 0x7ffe0304 +2146053016 (10c,36ee80,0,601a6b33)

[ 2] 0x77e7ab74 kernel32.WaitForSingleObject+15 (13defc,200,0,c0000005)

@[ 3] 0x601a5ac4 nnotes._OSFaultCleanup@12+1060 (0,0,0,13e8b4)

@[ 4] 0x601ae6d7 nnotes._OSNTUnhandledExceptionFilter@4+183 (13e8b4,13e8b4,6ffcf8e,13e8b4)

[ 5] 0x069ef7be HPBF321G.DllMain+164494 (13e8b4,4021a0,0,13ffb0)

[ 6] 0x77c213c8 msvcrt._XcptFilter+351 (0,13e8b4,77c23efb,13e8bc)

@[ 7] 0x00401e15 NLNOTES._WinMainCRTStartup+335 (77f8e3c3,9,7ffdf000,4c004e)

[ 8] 0x77e8141a kernel32.GetCurrentDirectoryW+68 (401cc6,0,78746341,20)

############################################################

FATAL THREAD 1/8 [ NLNOTES:05bc:0b0c]

FP=0x0013ecc4, PC=0x77f69d63, SP=0x0013ec8c, stksize=56

EAX=0x00000000, EBX=0x00156924, ECX=0x001cfcc0, EDX=0x77fc4860

ESI=0x00182120, EDI=0x00000000, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010202

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

[ 1] 0x77f69d63 ntdll.RtlDeleteCriticalSection+81 (156924,156770,4feed01a,156770)

[ 2] 0x4ff4b445 ole32.CoWaitForMultipleHandles+65104 (13ed18,0,0,0)

[ 3] 0x4feddf9f ole32.CoInitializeEx+1107 (1,1d14614,0,414c5255)

@[ 4] 0x612f8a08 nnotesws._Quit@0+584 (77d3c2e3,903fc,0,13ed78)

@[ 5] 0x612f87ac nnotesws._EndSession@0+860 (903fc,f060,4ee0548,0)

@[ 6] 0x612f8cf4 nnotesws.CloseAllChildWindows+644 (903fc,0,0,13f178)

@[ 7] 0x611843d8 nnotesws._MainWndProc@16+5624 (903fc,112,f060,10e04f1)

[ 8] 0x77d38654 USER32.IsCharAlphaNumericA+25752 (61182de0,903fc,112,f060)

[ 9] 0x77d38723 USER32.IsCharAlphaNumericA+25959 (0,61182de0,903fc,112)

[10] 0x77d3a0ec USER32.ReleaseDC+298 (1130e0,1112fd8,f060,10e04f1)

[11] 0x77d3a14d USER32.SendMessageW+71 (903fc,112,f060,10e04f1)

[12] 0x5b2acc85 UxTheme.SetThemeAppProperties+320 (34b38,13f234,a1,903fc)

[13] 0x5b291ae1 UxTheme.DrawThemeParentBackground+1130 (5b2acc09,0,14,10e04f1)

[14] 0x5b291b48 UxTheme.DrawThemeParentBackground+1233 (903fc,a1,14,10e04f1)

@[15] 0x61184fd7 nnotesws._NEMDefWindowProc@16+775 (903fc,a1,14,10e04f1)

@[16] 0x61184971 nnotesws._MainWndProc@16+7057 (903fc,a1,14,10e04f1)

[17] 0x77d38654 USER32.IsCharAlphaNumericA+25752 (61182de0,903fc,a1,14)

[18] 0x77d38723 USER32.IsCharAlphaNumericA+25959 (0,61182de0,903fc,a1)

[19] 0x77d38999 USER32.GetMessageW+293 (13f7c0,0,61221998,13f7c0)

[20] 0x77d38a12 USER32.DispatchMessageW+11 (401000,77f8e3c3,152354,0)

@[21] 0x0040156d NLNOTES._WinMain@16+1389 (400000,0,152354,1)

@[22] 0x00401dfa NLNOTES._WinMainCRTStartup+308 (77f8e3c3,9,7ffdf000,4c004e)

[23] 0x77e8141a kernel32.GetCurrentDirectoryW+68 (401cc6,0,78746341,20)

############################################################

PASS 2 : FATAL THREAD with STACK FRAMES 1/8 [ NLNOTES:05bc:0b0c]

FP=0013ecc4, PC=77f69d63, SP=0013ec8c, stksize=56

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

---------- Top of the Stack ----------

   # 0013ec8c  00000000 00156924 4ffd02f0 00000000  |....$i.....O....|

   # 0013ec9c  001cfcc0 00182128 00182120 00000000  |....(!.. !......|

   # 0013ecac  0013ec8c 0013e8b4 0013f188 77fa88f0  |...............w|

   # 0013ecbc  77f51630 00000000 0013ed00 4ff4b445  |0..w........E..O|

[ 1] 0x77f69d63 ntdll.RtlDeleteCriticalSection+81 (156924,156770,4feed01a,156770)

   # 0013ecc4  0013ed00 4ff4b445 00156924 00156770  |....E..O$i..pg..|

   # 0013ecd4  4feed01a 00156770 4feed00d 00000001  |...Opg.....O....|

   # 0013ece4  00000000 0013ed18 4feddf16 00156770  |...........Opg..|

   # 0013ecf4  00000002 0015a588 00000000 0013ed1c  |................|

Subject: RE: ERROR (0): AdjustTokenPrivileges failed - (1300) Not all the referenced accesslevels are assigned to the caller

Unfortunately, I have never seen this error. I am only reporting what I found in the Notes Knowledge Base. Although it is supposed to be fixed in your version, the messages you are getting look consistent with what the KB describes, namely that NSD does not have complete access in the failing system (as in can’t attach to process) to do what it needs to do.

If this is a recurring issue, I would suggest giving Admin privileges to at least one user to get a full NSD dumb to troubleshoot the issue.