[jcifs] Please Help Me!
Aris Javier
aristotle.javier at eazix.com
Tue Aug 31 07:36:27 GMT 2004
Hello!
I'm new here. I have a working app running in tomcat.
I also have a working code ("Getattr.java") to communicate to Active
Directory.
The thing is, i want to get first the logged-in username then i can
verify using "Getattr.java" if the user exists in AD.
I'm following the instructions on "JCIFS NTLM HTTP Authentication"
I copied the jar file in /lib folder. and
I inserted this inside my application's web.xml :
<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
<init-param>
<param-name>jcifs.smb.client.domain</param-name>
<param-value>EAZIX</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value>192.168.63.1</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
but this error occured;
java.lang.ArrayIndexOutOfBoundsException
java.lang.System.arraycopy(Native Method)
jcifs.smb.SmbComSessionSetupAndX.writeBytesWireFormat(SmbComSessionSetup
AndX.java:118)
jcifs.smb.AndXServerMessageBlock.writeAndXWireFormat(AndXServerMessageBl
ock.java:118)
jcifs.smb.AndXServerMessageBlock.writeWireFormat(AndXServerMessageBlock.
java:76)
jcifs.smb.SmbTransport.send(SmbTransport.java:606)
jcifs.smb.SmbSession.sessionSetup(SmbSession.java:189)
jcifs.smb.SmbSession.send(SmbSession.java:148)
jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)
jcifs.smb.SmbSession.logon(SmbSession.java:85)
jcifs.smb.SmbSession.logon(SmbSession.java:80)
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:129)
I need help!
PS: without this filter, my web app runs fine.
Thanks in advance!
aris
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs
mailing list