Im having a few issues trying to get Active Directory integration working reliably in JasperServer 4 with our 2003 Windows domain using LDAP. I have managed to authenticate and log in before with the applicationContext-security.xml file I have attached. Though it seems that it is very intermittent. So far, out of around 100 login attempts, only a half a dozen or so have actually succeeded. (setting not changed between login attempts). The rest just return the error as shown in the attached log file. There are times when simple restarting the jasper services allows me to log in temporarily with AD authentication, but its very flakey. Does anyone have any ideas as to what might be causing such unreliable authentication?