I am crawling a local file share that has read permissions for NT AUTHORITY\NETWORK SERVICE account.
I have enabled anonymous access and now I am able to get to my search box without authentication. But when I actually search for something I get no results back. I am able to get results when using the administrator account.
Changing ACL permissions and reindexing now give my local user access to the search results but my ultimate goal is to have the results viewable by an anonymous user.
What you are seeing is actually what I would expect, that is, Search Server challenges the credentials of the user performing the search regarding the ACL of the indexed files and only grant access if the user has proper read permissions regarding the files themselves (i.e. not just the search interface), see e.g. Security considerations for indexing, section About item level security:
Your example seems to imply that the files in question can only be read by
NT AUTHORITY\NETWORK SERVICE
, hence surfacing those files content via a search index would circumvent the access restrictions consciously applied to them in the first place, and not doing so seems like a sensible default at least (if not the only option in fact).Consequently you should be able to achieve the desired result by one or (maybe) two means:
Grant anonymous users (or your local test account for an easier/safer start) access to the files themselves via standard Windows ACL management. Please note that you'll likely need to reindex the content to surface the ACL changes in the query result, see quote above.
Eventually Search Server allows to override or ignore the ACL of an indexed fileset explicitly - I'm not aware of this option however (but ain't too familiar with Search Server either).
Good luck!