in reply to Access password protected network share without mapping

I'm probably one of the last people to offer networking related advice, so if I'm way off base chalk it up to a successful "gift shopping avoidance" ploy.

Have you tried authenticating to the server and then using UNC references (\\computername\path\to\backup\data) to the resource in question? If you have, it would be useful for other monks to know. Any other attempts, whether successful or not, would be informative also.

--Jim

  • Comment on Re: Access password protected network share without mapping

Replies are listed 'Best First'.
Re: Re: Access password protected network share without mapping
by Anonymous Monk on Dec 26, 2001 at 20:58 UTC
    Excuse the naivity, but how do I authenticate to the server on a peer-to-peer windows network. I have successfully used straight UNC references on some of the networked computers without having to give a password or map a network drive (even though they are all password protected shares). However, I could not successfully access files from many of the other computers, even after mapping a drive to them. Access was only possible after manually opening the network share and entering the password when prompted.
      You'll probably want to check out Win32::NetResource module and some of its functions: NetShareAdd(), NetShareCheck(), NetShareDel(), NetShareGetInfo() and NetShareSetInfo(). I have never used these modules before but they appear from the brief descriptions given in Perl in a Nutshell to do what you ask (including password authentication).

      My previous post was based on the assumption that authentication to any necessary network resources had been established via manual network login/mapping/etc. HTH,

      --Jim

      Update: I did some experimentation at this node and grep determined that it appears Win32::NetResource only runs on NT platforms. crazyinsomniac noted the fact is not in the perldocs for that module.