[jcifs] windows Authentication in web services

vardhaman narasagoudar vardhamanbn at gmail.com
Fri Nov 16 07:17:39 GMT 2007


 Hello ,

       My friend and me are trying to work on windows Authentication ,
Initially we tried it on Struts application +Netbeans 5.51 + Tomcat
5.5.17+JCIFS jar v
1.1.11(1.2.17) shifted to) to some extent we were successful to do windows
Authentication on IE 6.0 ,

       Now we are trying for the same on web services using frame work
JAX-WS 2.0 we have added the jar file and modified  in the application(say
webserv, domain is BROAD-4 )which we are trying to access from another
application(say webclient , domain is Broad-2)  as same as which we had done
for struts application. But we have started facing a new problem. When ever
we build the webclient  a  popup window comes which ask for username and
password at this moment If I enter the correct credentials , in the webser
console o/p I get a message saying that successful authenticated.. Now if I
run the webclient ….I get a message at webserv  console window saying that
its . the webserv is reading my credentials as Administrator  actually the
account that I have created in webserv m/c is vardhaman …. I tried logging
as vardhaman from my system at that moment it is reading accountName as
vardhaman but then too failing.



Please guide us. Looking forward for your positive response

For further clarification I have added the o/p from console window of
webserv, Broad-4, Am I missing some steps ?



 treeConnect: unc=\\BROAD-4\IPC$,service=?????
sessionSetup: accountName=Administrator,primaryDomain=BROAD-2
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=65407,uid=0,mid=22,wordCount=13,byteCount=131,andxCommand=0x75,andxOffset=192,snd_buf_size=16644,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,passwordLength=24,unicodePasswordLength=24,capabilities=4180,accountName=Administrator,primaryDomain=BROAD-2,NATIVE_OS=Windows
2003,NATIVE_LANMAN=jCIFS]
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=0,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=65407,uid=0,mid=0,wordCount=4,byteCount=37,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\BROAD-4\IPC$,service=?????]
00000: FF 53 4D 42 73 00 00 00 00 18 03 C0 00 00 00 00  |ÿSMBs......À....|
00010: 00 00 00 00 00 00 00 00 00 00 7F FF 00 00 16 00  |...........ÿ....|
00020: 0D 75 00 C0 00 04 41 0A 00 01 00 00 00 00 00 18  |.u.À..A.........|
00030: 00 18 00 00 00 00 00 54 10 00 00 83 00 4A 5C ED  |.......T.....J\í|
00040: 2C 59 E6 92 D8 52 56 20 69 AC 18 39 72 51 84 EF  |,Yæ.ØRV i¬.9rQ.ï|
00050: 22 A1 06 60 A7 85 00 8B DF 1B 2B F1 C0 0C 66 8C  |"¡.`§...ß.+ñÀ.f.|
00060: 87 E3 66 D0 AE 75 46 97 68 4E 0E 4D 32 00 41 00  |.ãfÐ(R)uF.hN.M2.A.|
00070: 64 00 6D 00 69 00 6E 00 69 00 73 00 74 00 72 00  |d.m.i.n.i.s.t.r.|
00080: 61 00 74 00 6F 00 72 00 00 00 42 00 52 00 4F 00  |a.t.o.r...B.R.O.|
00090: 41 00 44 00 2D 00 32 00 00 00 57 00 69 00 6E 00  |A.D.-.2...W.i.n.|
000A0: 64 00 6F 00 77 00 73 00 20 00 32 00 30 00 30 00  |d.o.w.s. .2.0.0.|
000B0: 33 00 00 00 6A 00 43 00 49 00 46 00 53 00 00 00  |3...j.C.I.F.S...|
000C0: 04 FF 00 DE DE 00 00 01 00 25 00 00 5C 00 5C 00  |.ÿ.ÞÞ....%..\.\.|
000D0: 42 00 52 00 4F 00 41 00 44 00 2D 00 34 00 5C 00  |B.R.O.A.D.-.4.\.|
000E0: 49 00 50 00 43 00 24 00 00 00 3F 3F 3F 3F 3F 00  |I.P.C.$...?????.|

New data read: Transport1[BROAD-4<00>/192.168.1.11:0]
00000

 NtlmHttpFilter: BROAD-2\Administrator: 0xC000006D:
jcifs.smb.SmbAuthException: Logon failure: unknown user name or bad password


-- 
Thanks & Regards
Vardhaman B.N
9945840928
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list