Error code 87 - NetUserGetLocalGroups - Windows 2003 Active Directory
- From: "Djorde Gladovic WK-EDV GmbH" <gladovic.d@xxxxxxxxx>
- Date: Thu, 9 Jun 2005 12:26:35 +0200
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
.
- Prev by Date: Re: How to keep a tcp socket continously opened without having a fin_wait, close_wait?
- Next by Date: Re: How to keep a tcp socket continously opened without having a fin_wait, close_wait?
- Previous by thread: Question on why connect fails when no address is bound using ipv6
- Next by thread: IPv6 Support for MSCS and/or Active Directory Server
- Index(es):
Relevant Pages
|