title: Cross-platform authentiated windows share
body: <p>I am trying to figure out how to access an <em>authenticated</em> windows file share from .net core (supplying domain / username / password) from Linux.</p>
  
  <p>I have a .NET framework based 
  sample project that does this in Windows operating system just fine. <a href="https://github.com/nddipiazza/SambaFetcher" rel="nofollow noreferrer">https://github.com/nddipiazza/SambaFetcher</a>
  (in particular
     <a href="https://github.com/nddipiazza/SambaFetcher/blob/master/SmbFetcher/UNCAccess.cs" rel="nofollow noreferrer">https://github.com/nddipiazza/SambaFetcher/blob/master/SmbFetcher/UNCAccess.cs</a> )</p>
  
  <p>But it relies on the NetApi32.dll directly so it will not work from Linux. </p>
  
  <p>Is there some way from .NET core to do this authentication? </p>