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 by 130.234.179.86 on January 20, 2005 at 05:13 PM MST #
Posted by Matt Raible on January 20, 2005 at 05:22 PM MST #
Posted by Ben C on January 21, 2005 at 03:08 PM MST #
Posted by Todd Huss on January 21, 2005 at 06:07 PM MST #
Posted by Ahmed Mohombe on January 25, 2005 at 09:47 AM MST #
Posted by Mike on January 28, 2005 at 09:16 AM MST #
Posted by Jonathan Dubois on March 07, 2005 at 05:45 PM 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 06:17 PM MST #
Posted by Jonathan Dubois on March 07, 2005 at 06:28 PM MST #
Posted by Vicky on March 31, 2005 at 07:35 AM MST #
Posted by Matt Raible on April 03, 2005 at 08:56 PM MDT #
Posted by Rene Guenther on August 08, 2005 at 12:00 PM MDT #
Posted by Rene Guenther on August 08, 2005 at 12:13 PM MDT #
Posted by Matt Raible on August 08, 2005 at 03:50 PM MDT #
Posted by Rene Guenther on August 09, 2005 at 05:19 PM 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 02:58 PM MDT #