I would like to add a JCIFS Ntlm filter to receive the Windows user id. To
test if it works I've added some lines in the AddUser.java file to be able
to see in the tomcat stdout-logfile if it works. 

HttpRequest request = (HttpRequest)ContextHelper.getRequest(this.context);
String remoteuser = request.getRemoteUser();
System.out.println("test user id: " + remoteuser );

In the beginning it worked (I got the proper user id printed in the log
file), but suddenly I couldn't log in to the publication anymore
(authentication failed). I've tried to build clean and the rebuild the
publication, but it doesn't help.

I have installed the JCIFS .jar file in the proper location and added the
following code to the lenya web.xml page (please note that I've excluded the
proper param-values of integrity reasons):

<filter>
    <filter-name>NtlmHttpFilter</filter-name>
    <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
    <init-param>
        <param-name>jcifs.netbios.wins</param-name>
        <param-value>*My server addresses*</param-value>
    </init-param>
    <init-param>
        <param-name>jcifs.smb.client.domain</param-name>
        <param-value>*My domain name*</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>NtlmHttpFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

My suspicion is that the filter "attacks" alla request objects in Lenya,
thus disturbing requests from other usecases, such as log in. Is there
anyway to work around this?
-- 
View this message in context: 
http://www.nabble.com/Merge-of-a-JCIFS-Ntlm-filter-tp17405156p17405156.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to