Returns the NMAS error code, if there is any error.
#include <ldap.h> int ldap_nmas_get_errcode( void );
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.