I would like to know how to retrieve the real LDAP error code or message returned by the user directory during an authentication step and be able display it in a login page. How could I do it?
LDAP return code is not sent to the webagent. It is limited to policy server and thus, webagent won't be able to retrieve those values. Policy server only returns different smauthreason values which can be captured at the webagent side.