NetShareEnumAll returns truncated strings

Ricardo Jorge ricardo.swat.samba at gmail.com
Tue Jun 28 04:41:06 MDT 2011


Did a checkout of the release-4-0-0alpha16 branch/tag and it works ok.

There's a bug somewhere.



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

> Completly forgot to mention that I am using the lastest git version and
> python 2.6.6.
>
> I will try to revert to an older version.
>
> py_srvsvc.c (bin/default/librpc/gen_ndr) is generated after you build
> samba4. I assume it's the file that's used to generate the srvsvc module.
>
> Thank you for your help. I will post here when I am done.
>
> Regards,
> Ricardo
>
>
>
>
> On Tue, Jun 28, 2011 at 7:39 AM, Dhananjay Sathe <dhananjaysathe at gmail.com
> > wrote:
>
>> 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