Error code 87 - NetUserGetLocalGroups - Windows 2003 Active Directory

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello,

i have a problem and couldn't find any solution.

Last week our customer upgraded his Windows NT4 domain to a Windows 2003
Active Directory using the so called "In-Place Ugrade". Our Customer is
using a self-made administrative tool for user management build on Windows
NT4 technologie. I'm the developer of this tool. The Windows 2003 Active
Directory running under NT Compatibility Mode and supports all the used
NETAPI32 calls. I checked and optimized all NETAPI32 calls and in a testing
environment the administration tool runs well under Active Directory.

But since yesterday i have a problem. Several times a day a call to
"NetUserGetLocalGroups" returns error code 87. A few minutes later this
error disappiers, and "NetUserGetLocalGroups" works fine again. My source
code is well and corresponds exactly with the way Microsoft documentated the
function in MSDN. During the time where the functions returns the error code
87, i tried several things to analyse the problem. For the first parameter
"servername", i'm using NetGetDCName to get a PDC. The resolved computer
name is valid and matches the master active directory controller. I changed
the parameter to a secondary controller and what happend? Error code 0 and a
list of local groups. Changing back to the previous computer name, a got
again error code 87. A few minutes later, no more errors, and no ideas
anymore.

Well, i tried the built-in NT4 usrmgr.exe, too. This application runs
everytime well and returns never an error, even in the time where my placed
"NetUserGetLocalGroups" call returns code 87. Why?

In a NT4 domain environment this problem doesn't occurs. I run my code
several times in a NT4 domain.

To get time for looking for a solution i changed my code and replaced the
parameter with the secondary DC. Today my customer phoned me and what
happend again code 87. I don't know more what i can do.

Has anyone an idea? I event don't understand why code 87, all placed
parameters are right and corresponds exactly the documentation. In debug
mode, all values are valid, too. I'd never had a problem like this. Because
Micrsoft NT4 usrmgr.exe is running, a have to solve the problem.

Thank you very much.

Regards

Djordje Gladovic

Software-Entwicklung

-------------------------------------------------------------

WK EDV Vertriebs- und Beratungsgesellschaft mbH

-------------------------------------------------------------

Ochsengründlweg 6

86633 Neuburg a. d. Donau

Fon: +49 (0) 84 31 - 67 04 -15

Fax: +49 (0) 84 31 - 67 04 -22

E-Mail: gladovic.d at wk-edv.de

Web: www.wk-edv.de


.



Relevant Pages

  • Re: DirectoryEntry.Invoke access is denied
    ... - Are you using Active Directory, an NT4 domain or local machine groups? ... Services calls is hard and it is much easier to let Windows do this for you. ... >> It is a lot easier than trying to get your delegation scenario working ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: join Windows2000 AD with Windows 2003 subdomain (during upgrade from NT4)
    ... > currently there is one Windows 2000 based Active Directory and two NT4 ... Now we want to upgrage the NT4 domain and join the ... upgrade the NT4 PDC with ...
    (microsoft.public.win2000.active_directory)
  • join Windows2000 AD with Windows 2003 subdomain (during upgrade from NT4)
    ... Active Directory as a subdomain. ... upgrade the NT4 PDC with the Windows ... Could I join the Windows 2000 based AD with upgrading the NT4 domain to ...
    (microsoft.public.win2000.active_directory)
  • SPS Portal NT4 Active Directory Migration
    ... Our customer currently has SharePoint Portal deployed on a NT4 Domain. ... They are about to start migrate to Windows 2003 Active Directory, ... What ties will the Portal still have to NT4 Domain once on Windows 2003 ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Active Directory interim set up
    ... Our main office is not ready for W2K3 migration so I ... > To make it short, you upgrade your PDC to W2K3, set the Forest and Domain ... >> Currently our company has about 600 computers running NT4 Domain. ... >> don't plan on upgrading to Active Directory 2003 anytime soon. ...
    (microsoft.public.windows.server.active_directory)