User Manager for Domains on Win9x

Jim McDonough jmcd at us.ibm.com
Tue Mar 13 23:09:01 GMT 2001


Ok, I've figured out the general problem on User Manager for Domains on
Windows 9x (says "The R. P. C. failed").  Seems to be that while it uses
MSRPCs to get the info, it doesn't properly respond to the 0x80000005
warning.  It responds (and gets from an NT server) properly to an ERRDOS
class 234 error...

So, this fragment gets around the bug (and does not pretend to be good and
proper) in ipc.c:

--- /samba/orig/samba-2.2/source/smbd/ipc.c   Wed Feb 21 12:32:45 2001
+++ smbd/ipc.c Tue Mar 13 15:52:03 2001
@@ -102,8 +102,10 @@
     if (buffer_too_large)
     {
          /* issue a buffer size warning.  on a DCE/RPC pipe, expect an
SMBreadX... */
-         SIVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
-         SIVAL(outbuf, smb_rcls, 0x80000000 | STATUS_BUFFER_OVERFLOW);
+         SSVAL(outbuf, smb_err, ERRmoredata); //jmcd
+         SCVAL(outbuf, smb_rcls, ERRDOS); //jmcd
+         //jmcd SIVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
+         //jmcd SIVAL(outbuf, smb_rcls, 0x80000000 |
STATUS_BUFFER_OVERFLOW);
     }

     copy_trans_params_and_data(outbuf, align,


***********
What would be the right place to detect and decide what the client wants?


----------------------------
Jim McDonough
Linux Technology Center
IBM Boulder

Notes: Jim McDonough/Boulder/IBM @ IBMUS
VNET: JMCD at IBMUSM54
Internet: jmcd at us.ibm.com

Phone: (303) 924-5822
T/L: 263-5822









More information about the samba-technical mailing list