First off, I don't see how a servlet filter will help with a JUnit test case.
If he/she was using Cactus, maybe but this is an issue with the login
module.
Also, NTLM is not being used here. Neillane is using LDAP, not Windows. So
Samba shouldn't be required.
Neillane,
For starters
download jcifs.jar from http://jcifs.samba.org, and use it as a filter in your
web.xml file.
?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=2.4
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee