ldap_nmas_get_errcode

Returns the NMAS error code, if there is any error.

LDAP Version:v2 or higher
Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  int ldap_nmas_get_errcode( void );
  

Return Values

>0

Pointer to the NMAS error code

Remarks

The ldap_nmas_get_errcode function returns the NAMS error code, if there is any error. The error code is captured from the following function:

       ldap_bind_nmas_s
  

The NMAS error code is a negative value, which points to a specific NMAS error. You can use ldap_nmas_err2string method to retrieve the appropriate error string corresponding to the NMAS error code returned by ldap_nmas_get_errcode function.

See Also

ldap_bind_nmas_s, ldap_nmas_err2string