I am using the LdapLoginModule to authenticate users for our app against Microsoft AD. I noticed that if my server cannot connect to the AD, My client still get back a HTTP 401. I would expect a HTTP 500 which would give my client an idea that there is some problems on the server and act accordingly.
Can anyone tell me if there are any way to get JBoss authentication to send back the appropriate error code depending on the cause of the authentication failure?
Any help would be greatly appreciated.
Just wondering if anybody can help me with this issue? Or maybe point me in the right direction? I thought this looked like a bug in the authentication framework but thought I'd ask the forum first before logging it. Any help would be greatly appreciated!
Thanks in advance,