Thursday January 20, 2005
JCIFS and jWebUnit On my current project, we're using JCIFS to integrate our application authentication process with NT Domain logins. While I found it quite easy to integrate, the one issue I found is I couldn't replicate the login process in a jWebUnit test. I tried setting the WWW-Authentication header to NTLM, but couldn't get it to work. The solution I ended up using is to subclass the NtlmHttpFilter and disable authentication when the User-Agent is "httpunit".
public class LoginFilter extends NtlmHttpFilter {
|
Hopefully this is useful for others. If you've managed to get regular jWebUnit authentication working with NTLM, I'm all ears.
Posted in Java at Jan 20 2005, 09:34:41 AM MST 16 Comments
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
Search This Site
Recent Entries
- Happy Birthday Mom!
- 2008 - A Year in Review
- Portland Tech Meetup Tomorrow Night
- My "almost slept in a snow cave" Adventure with Clint Foster
- My Christmas Travel Adventure
- AppFuse Light converted to Maven modules, upgraded to Tapestry 5 and Stripes 1.5
- Dojo/Comet support in Java Web Frameworks
- Abbie is a Blue Skier!
- How I recovered data from my failed Linux box
- Costa Rica was Awesome!
Posted by 130.234.179.86 on January 20, 2005 at 10:13 AM MST #
Posted by Matt Raible on January 20, 2005 at 10:22 AM MST #
Posted by Ben C on January 21, 2005 at 08:08 AM MST #
Posted by Todd Huss on January 21, 2005 at 11:07 AM MST #
Posted by Ahmed Mohombe on January 25, 2005 at 02:47 AM MST #
Posted by Mike on January 28, 2005 at 02:16 AM MST #
Posted by Jonathan Dubois on March 07, 2005 at 10:45 AM MST #
I don't think this is possible with JCIFS. It might be possible with Acegi Security. You can chain authentication providers, and you could have a JAAS one that talks to NT and then another one that talks to a database.
Posted by Matt Raible on March 07, 2005 at 11:17 AM MST #
Posted by Jonathan Dubois on March 07, 2005 at 11:28 AM MST #
Posted by Vicky on March 31, 2005 at 12:35 AM MST #
Posted by Matt Raible on April 03, 2005 at 02:56 PM MDT #
Posted by Rene Guenther on August 08, 2005 at 06:00 AM MDT #
Posted by Rene Guenther on August 08, 2005 at 06:13 AM MDT #
Posted by Matt Raible on August 08, 2005 at 09:50 AM MDT #
Posted by Rene Guenther on August 09, 2005 at 11:19 AM MDT #
Dear All,
I am having problem setting up the session replication for JCIFS on JBoss Clustering.
Here is my environment:
Web Server: 1 X Apache 2.2.8 (mod_jk 1.2.26 for load balancing) on SUN Sparc T2000 Solaris 10 Application Server: 2 X JBoss 4.2.2 GA (Clustering) on SUN Sparc T2000 Solaris 10 JCIFS: 1.2.18
The error I have is that JCIFS.UniAddress is not Serializable and not able to replicate the session for it.
I have read some of articles on-line and it all mentioned about not able to get the load-balance/clustering to work properly on JCIFS.
Is there any way to make it work?
Posted by Eric on March 25, 2008 at 08:58 AM MDT #