Closed sshanks-kx closed 1 year ago
Extra info appears to come from getting value of LDAP_OPT_DIAGNOSTIC_MESSAGE message (rather than any return values/etc of function directly) https://github.com/openldap/openldap/blob/992815ced57d77b4a3ff554dc5a84412531cf4dd/clients/tools/common.c#L1552
running ldapsearch can often print 'additional info' on error e.g.
currently, for -2 error, running
.ldap.err2string[-2i]
gives"Local error"
as per first line of the ldapsearch error, but would be helpful to be able to get what ldapsearch shows for its 'additional info'.