NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

Software Development Kit (SDK) and API Discussions

windows API's not working for 'nobrowse' shares

VARONISSYSTEMS
2,981 Views

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
Public