NetShareEnumAll returns truncated strings

Dhananjay Sathe dhananjaysathe at gmail.com
Tue Jun 28 00:39:41 MDT 2011


Forgot to mention one more thing , there is not much in py_srvsvc.c (i don't
even have it in my tree)
You may want to look at 2 files that have the code to do with srvsvc

   - librpc/idl/srvsvc.idl
   - source4/rpc_server/srvsvc/dcesrv_srvsvc.c

Cheers !

Dhananjay Deepak Sathe | +919764871950
dhananjaysathe at gmail.com,f2009260 at bits-goa.ac.in
Blog : http://dsathe.blogspot.com
2nd Year Undergraduate,
BE(Hons) Electronics and Instrumentation,
BITS Pilani Goa Campus.



On Tue, Jun 28, 2011 at 5:34 AM, Ricardo Jorge <ricardo.swat.samba at gmail.com
> wrote:

> Hi.
>
> For some reason I cannot understand NetShareEnumAll (NetShareEnum as well)
> is returning truncated strings (names, comments, paths). This code worked
> well some time ago.
>
> *Test Code*
> http://pastebin.com/UhbtTfkk
>
> *Output (in my case) is: *
> netl (should be netlogon)
> sys (should be sysvol)
> mi (should be mine)
> IP (should be IPC$)
>
> *Debug Mode*
>
> I setup Samba4 to run with debug level 10 and I got the following:
> http://pastebin.com/wCwHzZF4
> The results are not truncated there. I cannot find anyting in py_srvsvc.c
> that could cause this.
>
> Any tips?
>
> Thank you,
> Ricardo
>


More information about the samba-technical mailing list