jean-marc pouchoulon
2003-Oct-23 09:37 UTC
[Samba] Samba3+ldapsam+Win9x userlist, Bug596?! sniffing info
>Thereby sorry for being impolite :-(, but at present I'm running samba >3.0.1pre1 with ldapsam in the production servers, >and Win9x clientscouldn't get list of users and groups from Samba DCs (Bug596). I have 3>choices: >- -- Switch back to 2.2.7 (not very nice:-(, I would need group supportfor policy)>- -- Switch to tdbsam with fam/rsync/ssh-ing password and groupmappings (very ugly and error prone :-()>- -- Wait, in hope of a solution/workaround >Please give me an advice, which one could harm less.>Thanks for not shooting me for bore you with my problems.Same questions for me ( luckily the xp client works in my basic conf but I have needs from my win98's users). I can see with ethereal that after the groups name will be return by the server. After there is a 'SMB Transaction Response, Error: General failure' 51 8.613145 serv1 -> client SMB Transaction Response 0000 00 00 e8 6e 48 e2 00 07 e9 06 b7 37 08 00 45 10 ...nH......7..E. 0010 01 a0 23 50 40 00 40 06 76 6b ac 1d a0 3e ac 1d ..#P@.@.vk...>.. 0020 a7 13 00 8b 04 03 cd d9 58 bf 00 19 92 a7 50 18 ........X.....P. 0030 88 e0 e0 f1 00 00 00 00 01 74 ff 53 4d 42 25 00 .........t.SMB%. 0040 00 00 00 80 01 c8 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 01 00 61 20 64 00 82 3c 0a 00 00 3c 01 00 ....a d..<...<.. 0060 00 00 00 38 00 00 00 3c 01 38 00 00 00 00 00 3d ...8...<.8.....0070 01 00 05 00 02 03 10 00 00 00 3c 01 00 00 1d 00 ..........<..... 0080 00 00 24 01 00 00 00 00 00 00 00 00 00 00 01 00 ..$............. 0090 00 00 04 00 00 00 01 00 00 00 04 00 00 00 00 02 ................ 00a0 00 00 36 00 36 00 01 00 00 00 d7 07 00 00 30 00 ..6.6.........0. 00b0 30 00 01 00 00 00 ed 07 00 00 26 00 26 00 01 00 0.........&.&... 00c0 00 00 03 02 00 00 16 00 16 00 01 00 00 00 1b 00 ................ 00d0 00 00 00 00 00 00 1b 00 00 00 41 00 64 00 6d 00 ..........A.d.m. 00e0 69 00 6e 00 69 00 73 00 74 00 72 00 61 00 74 00 i.n.i.s.t.r.a.t. 00f0 65 00 75 00 72 00 73 00 20 00 64 00 75 00 20 00 e.u.r.s. .d.u. . 0100 44 00 6f 00 6d 00 61 00 69 00 6e 00 65 00 00 00 D.o.m.a.i.n.e... 0110 00 00 18 00 00 00 00 00 00 00 18 00 00 00 55 00 ..............U. 0120 74 00 69 00 6c 00 69 00 73 00 61 00 74 00 65 00 t.i.l.i.s.a.t.e. 0130 75 00 72 00 73 00 20 00 64 00 75 00 20 00 44 00 u.r.s. .d.u. .D. 0140 6f 00 6d 00 61 00 69 00 6e 00 65 00 00 00 13 00 o.m.a.i.n.e..... 0150 00 00 00 00 00 00 13 00 00 00 49 00 6e 00 76 00 ..........I.n.v. 0160 69 00 74 00 65 00 73 00 20 00 64 00 75 00 20 00 i.t.e.s. .d.u. . 0170 44 00 6f 00 6d 00 61 00 69 00 6e 00 65 00 00 00 D.o.m.a.i.n.e... 0180 00 00 0b 00 00 00 00 00 00 00 0b 00 00 00 73 00 ..............s. 0190 6d 00 62 00 6d 00 61 00 63 00 68 00 69 00 6e 00 m.b.m.a.c.h.i.n. 01a0 65 00 00 00 00 00 04 00 00 00 00 00 00 00 e............. 52 8.614780 client -> serv1 SMB Transaction Request 0000 00 07 e9 06 b7 37 00 00 e8 6e 48 e2 08 00 45 00 .....7...nH...E. 0010 00 b8 51 11 40 00 80 06 09 a2 ac 1d a7 13 ac 1d ..Q.@........... 0020 a0 3e 04 03 00 8b 00 19 92 a7 cd d9 5a 37 50 18 .>..........Z7P. 0030 1c d4 51 5a 00 00 00 00 00 8c ff 53 4d 42 25 00 ..QZ.......SMB%. 0040 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 01 00 61 20 64 00 02 3d 10 00 00 3c 00 00 ....a d..=...<.. 0060 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 50 ...............P 0070 00 3c 00 50 00 02 00 26 00 ff 75 49 00 00 5c 00 .<.P...&..uI..\. 0080 50 00 49 00 50 00 45 00 00 00 05 00 00 03 10 00 P.I.P.E......... 0090 00 00 3c 00 00 00 1e 00 00 00 24 00 00 00 00 00 ..<.......$..... 00a0 33 00 00 00 00 00 0c 00 00 00 00 00 00 00 16 99 3............... 00b0 97 3f db 5d 00 00 04 00 00 00 00 00 00 00 30 75 .?.]..........0u 00c0 00 00 00 e8 03 00 ...... 53 8.614790 serv1 -> client TCP netbios-ssn > 1027 [ACK] Seq=3453573687 Ack=1676087 Win=35040 Len=0 0000 00 00 e8 6e 48 e2 00 07 e9 06 b7 37 08 00 45 10 ...nH......7..E. 0010 00 28 23 51 40 00 40 06 77 e2 ac 1d a0 3e ac 1d .(#Q@.@.w....>.. 0020 a7 13 00 8b 04 03 cd d9 5a 37 00 19 93 37 50 10 ........Z7...7P. 0030 88 e0 c7 77 00 00 ...w.. 54 13.262490 serv1 -> client SMB Transaction Response, Error: General failure 0000 00 00 e8 6e 48 e2 00 07 e9 06 b7 37 08 00 45 10 ...nH......7..E. 0010 02 64 23 52 40 00 40 06 75 a5 ac 1d a0 3e ac 1d .d#R@.@.u....>.. 0020 a7 13 00 8b 04 03 cd d9 5a 37 00 19 93 37 50 18 ........Z7...7P. 0030 88 e0 3e ad 00 00 00 00 02 38 ff 53 4d 42 25 03 ..>......8.SMB%. 0040 00 1f 00 80 01 88 00 00 00 00 00 00 00 00 00 00 ................ 0050 00 00 01 00 61 20 64 00 02 3d 0a 00 00 00 02 00 ....a d..=...... 0060 00 00 00 38 00 00 00 00 02 38 00 00 00 00 00 01 ...8.....8...... 0070 02 00 05 00 02 03 10 00 00 00 68 06 00 00 1e 00 ..........h..... 0080 00 00 50 06 00 00 00 00 00 00 40 a3 00 00 40 06 ..P.......@...@. 0090 00 00 04 00 00 00 32 00 00 00 01 00 00 00 32 00 ......2.......2. 00a0 00 00 01 00 00 00 06 00 07 00 01 00 00 00 02 00 ................ 00b0 00 00 05 00 06 00 01 00 00 00 03 00 00 00 07 00 ................ 00c0 08 00 01 00 00 00 04 00 00 00 06 00 07 00 01 00 ................ 00d0 00 00 05 00 00 00 06 00 07 00 01 00 00 00 06 00 ................ 00e0 00 00 08 00 09 00 01 00 00 00 07 00 00 00 07 00 ................ 00f0 08 00 01 00 00 00 08 00 00 00 08 00 09 00 01 00 ................ 0100 00 00 09 00 00 00 05 00 06 00 01 00 00 00 0a 00 ................ 0110 00 00 07 00 08 00 01 00 00 00 0b 00 00 00 06 00 ................ 0120 07 00 01 00 00 00 0c 00 00 00 08 00 09 00 01 00 ................ 0130 00 00 0d 00 00 00 05 00 06 00 01 00 00 00 0e 00 ................ 0140 00 00 08 00 09 00 01 00 00 00 0f 00 00 00 06 00 ................ 0150 07 00 01 00 00 00 10 00 00 00 06 00 07 00 01 00 ................ 0160 00 00 11 00 00 00 08 00 09 00 01 00 00 00 12 00 ................ 0170 00 00 08 00 09 00 01 00 00 00 13 00 00 00 06 00 ................ 0180 07 00 01 00 00 00 14 00 00 00 07 00 08 00 01 00 ................ 0190 00 00 15 00 00 00 08 00 09 00 01 00 00 00 16 00 ................ 01a0 00 00 08 00 09 00 01 00 00 00 17 00 00 00 08 00 ................ 01b0 09 00 01 00 00 00 18 00 00 00 05 00 06 00 01 00 ................ 01c0 00 00 19 00 00 00 08 00 09 00 01 00 00 00 1a 00 ................ 01d0 00 00 08 00 09 00 01 00 00 00 1b 00 00 00 06 00 ................ 01e0 07 00 01 00 00 00 1c 00 00 00 05 00 06 00 01 00 ................ 01f0 00 00 1d 00 00 00 04 00 05 00 01 00 00 00 1e 00 ................ 0200 00 00 08 00 09 00 01 00 00 00 1f 00 00 00 06 00 ................ 0210 07 00 01 00 00 00 20 00 00 00 07 00 08 00 01 00 ...... ......... 0220 00 00 21 00 00 00 06 00 07 00 01 00 00 00 22 00 ..!...........". 0230 00 00 08 00 09 00 01 00 00 00 23 00 00 00 08 00 ..........#..... 0240 09 00 01 00 00 00 24 00 00 00 05 00 06 00 01 00 ......$......... 0250 00 00 25 00 00 00 04 00 05 00 01 00 00 00 26 00 ..%...........&. 0260 00 00 08 00 09 00 01 00 00 00 27 00 00 00 07 00 ..........'..... 0270 08 00
Jeremy Allison
2003-Oct-23 20:49 UTC
[Samba] Samba3+ldapsam+Win9x userlist, Bug596?! sniffing info
On Thu, Oct 23, 2003 at 11:37:29AM +0200, jean-marc pouchoulon wrote:> >Thereby sorry for being impolite :-(, but at present I'm running samba > >3.0.1pre1 with ldapsam in the production servers, >and Win9x clients > couldn't get list of users and groups from Samba DCs (Bug596). I have 3 > >choices: > >- -- Switch back to 2.2.7 (not very nice:-(, I would need group support > for policy) > >- -- Switch to tdbsam with fam/rsync/ssh-ing password and group > mappings (very ugly and error prone :-() > >- -- Wait, in hope of a solution/workaround > >Please give me an advice, which one could harm less. > > >Thanks for not shooting me for bore you with my problems. > > Same questions for me ( luckily the xp client works in my basic > conf but I have needs from my win98's users). > > I can see with ethereal that after the groups name will be > return by the server. > After there is a 'SMB Transaction Response, Error: General > failure'I just fixed this in CVS. Here is the patch. ==================================================================RCS file: /cvsroot/samba/source/smbd/ipc.c,v retrieving revision 1.180.2.12 retrieving revision 1.180.2.13 diff -u -r1.180.2.12 -r1.180.2.13 --- samba/source/smbd/ipc.c 2003/10/17 21:19:15 1.180.2.12 +++ samba/source/smbd/ipc.c 2003/10/21 23:14:41 1.180.2.13 @@ -96,7 +96,7 @@ align = ((this_lparam)%4); if (buffer_too_large) { - ERROR_NT(STATUS_BUFFER_OVERFLOW); + ERROR_BOTH(STATUS_BUFFER_OVERFLOW,ERRDOS,ERRmoredata); } set_message(outbuf,10,1+align+this_ldata+this_lparam,True); @@ -281,6 +281,14 @@ subcommand = ((int)setup[0]) & 0xFFFF; if(!(p = get_rpc_pipe(pnum))) { + if (subcommand == TRANSACT_WAITNAMEDPIPEHANDLESTATE) { + /* Win9x does this call with a unicode pipe name, not a pnum. */ + /* Just return success for now... */ + DEBUG(3,("Got TRANSACT_WAITNAMEDPIPEHANDLESTATE on text pipe name\n")); + send_trans_reply(outbuf, NULL, 0, NULL, 0, False); + return -1; + } + DEBUG(1,("api_fd_reply: INVALID PIPE HANDLE: %x\n", pnum)); return api_no_reply(outbuf, mdrcnt); }