Software Development Kit (SDK) and API Discussions

windows API's not working for 'nobrowse' shares

VARONISSYSTEMS

Hi,

I'm using Microsoft api's for CIFS shares:

GetNamedSecurityInfo - get the share's permissions

NetShareGetInfo - get the share's type(indicates if it's an administrative share for example)

Those functions work fine, except for shares that are configured with the -nobrowse flag.

for those, i get hresult 87 -  "the parameter is incorrect".

If i reconfigure the same share as browsable, the functions work ok.

It's important to indicate that i call both API's with the full path of the share , the one that allows access to it.

(I'm using OnTap API for getting the nobrowse Shares ( 'cifs-share-list-iter-start' and 'cifs-share-list-iter-next')).

 

Are you aware of any solution for this problem?

Is there a known limitation on the server side? should i pass the parameter differently? is there a workaround?

 

Thank you for your help.

 

 

0 REPLIES 0
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public