I'm looking for an official list of LDAP error codes
Specifically given LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 531, v1db1
I'm looking for the data-code, in this case 531 = not permitted to logon at this workstation
as found by the JIRA LDAP Error Code Documentation.
Best Answer
Microsoft makes a program named
err.exe
that you can download and use to look up error codes. More officially named the Microsoft Error Lookup Tool:It provides error codes for Windows, SQL, Exchange, etc., etc.
There are also online implementations of it (such as http://errlookup.azurewebsites.net) in case you don't want to download the utility, or you want to do a lookup on a non-Windows device.
For example, looking up error code "49" returns a list that includes one for the winldap.h:
LDAP_INVALID_CREDENTIALS winldap.h
So in the winldap context, error 49 is an 'invalid credentials' error.
Looking up error 0x80090308 reports:
Which, judging by the
SEC_E
, again points to an invalid security credential being passed.Looking up error 531:
Which lines up with the error you looked up.