Logging the return code from the ldap authentication to SQL.