Re: Various error codes: (was: Add AUXILIARY object class to inetOrgPerson entry)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dmitri Gavrilov [MSFT] (dmitrig_at_online.microsoft.com)
Date: 06/18/04


Date: Fri, 18 Jun 2004 12:48:10 -0700

There are some legal implications of using English strings -- sometimes,
they *have* to be localized, or we won't be able to sell the product at all.
I don't know the details though. So, our next best option is to use
universal language of numbers :)

Yes, you can turn on logging on the DC by adjusting values in
HKLM\System\CCS\Services\NTDS\Diagnostics. There is info in KB on doing
this.

-- 
Dmitri Gavrilov
SDE, Active Directory Core
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Michael Ströder" <michael@stroeder.com> wrote in message
news:o958q1-kb8.ln1@nb2.stroeder.com...
> Dmitri Gavrilov [MSFT] wrote:
> > Well, the set of ldap error codes is very limited. We can not introduce
new
> > ones because it will break existing apps.
>
> Yes. But please use them as fine-grained as possible. Please...
>
> With my own http://www.web2ldap.de I'm trying hard to catch specific LDAP
> errors providing appropriate interaction with the user in case of
> something's going wrong.
>
> > Often, we provide a secondary
> > error code (from winerror.h) as the first hex number of the server error
> > string. "Data" field sometimes contains another error code, and
sometimes an
> > attribute or class id.
>
> I see.
>
> > The problem with returning string errors is that they need to be
localized,
> > and this is quite costly.
>
> Well, IMHO it's more helpful to see an english text instead of solely an
> undocumented numeric code.
>
> This leads to another question:
> Can I turn on a more verbose debug logging in W2K3 Server's Active
Directory?
>
> > With DSIDs -- try searching the KB with the dsid value. If you are
hitting a
> > common error, then there will be a KB article about it.
>
> I used Google with the DSID. I wasn't even sure DSID is kind of an error
code.
>
> > If you got a rare
> > error, you are better off asking here anyway.
>
> Ok. Thanks.
>
> Ciao, Michael.


Relevant Pages

  • Re: using NULL pointers in COM
    ... *string" if I exit with an error code: ... you exit with an error code. ... pointed-to memory, a crash or heap corruption ensues. ... This has nothing to do with your initializing or not initializing the ...
    (microsoft.public.vc.atl)
  • Re: using NULL pointers in COM
    ... it is possible for me to not modify that "BSTR ... *string" if I exit with an error code: ... you exit with an error code. ...
    (microsoft.public.vc.atl)
  • Re: terminate a PHP script
    ... The Natural Philosopher wrote: ... >> Because of the incredible convolution and depth of nested if/then/else>> you can get to. ... If I have a function that's scanning a>> string looking for and obtaining options and their values for some>> command previously scanned off the string, and I detect an error, I want>> to set an error code and exit right there. ...
    (comp.lang.php)
  • An Error while running Error Handling Code
    ... strCallingProc As String, Optional vParameters, Optional bShowUser As ... Is there something that is wrong in the On Error code? ...
    (microsoft.public.access.modulesdaovba)
  • Various error codes: (was: Add AUXILIARY object class to inetOrgPerson entry)
    ... Dmitri Gavrilov [MSFT] wrote: ... the set of ldap error codes is very limited. ... I wasn't even sure DSID is kind of an error code. ...
    (microsoft.public.windows.server.active_directory)