[jcifs] Problems with jcifs
falecomigo at marcossousa.com
falecomigo at marcossousa.com
Wed Oct 19 00:39:52 GMT 2005
Hi people,
I have a problem to get Windows' user name. My server is Windows 2003 and I am using jcifs to get windows' user to identificate in my system writed in Struts + JSF. My container J2EE is Apache Tomcat. I write my web.xml like this:
<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>marcos</param-value>
</init-param>
<init-param>
<param-name>jcifs.netbios.wins</param-name>
<param-value>10.1.1.1</param-value>
</init-param>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>3</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
When I execute ipconfig/all in prompt is showed:
Configuraçao de IP do Windows
Nome do host . . . . . . . . . . . : marcossousa
Sufixo DNS primário. . . . . . . . : marcos.local
Tipo de nó . . . . . . . . . . . . : desconhecido
Roteamento de IP ativado . . . . . : sim
Proxy WINS ativado . . . . . . . . : sim
Lista de pesquisa de sufixo DNS. . : marcos.local
Adaptador Ethernet Conexao local:
Sufixo DNS específico de conexao . :
Descriçao. . . . . . . . . . . . . : Broadcom NetXtreme 57xx Gigabit Controller
Endereço físico. . . . . . . . . . : 00-12-3F-17-4B-E8
DHCP ativado . . . . . . . . . . . : nao
Endereço IP. . . . . . . . . . . . : 10.1.1.1
Máscara de sub-rede. . . . . . . . : 255.0.0.0
Gateway padrao . . . . . . . . . . :
And when I execute "nbtstat -A 10.1.1.1" in prompt is showed:
Conexao local:
Endereço-Ip nó: [10.1.1.1] Identificador de escopo: []
Tabela de nomes de máquinas remotas de NetBIOS
Nome Tipo Status
---------------------------------------------
MARCOSSOUSA <00> EXCLUSIVO Registrado
MARCOS <00> GRUPO Registrado
MARCOS <1C> GRUPO Registrado
MARCOSSOUSA <20> EXCLUSIVO Registrado
MARCOS <1B> EXCLUSIVO Registrado
MARCOS <1E> GRUPO Registrado
MARCOS <1D> EXCLUSIVO Registrado
..__MSBROWSE__.<01> GRUPO Registrado
Endereço MAC = 00-12-3F-17-4B-E8
I need of yours help, and I will happy if my problem will be solved.
Thanks.
--
Marcos Sousa
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs
mailing list