in reply to Re: Access password protected network share without mapping
in thread Access password protected network share without mapping

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.
  • Comment on Re: Re: Access password protected network share without mapping

Replies are listed 'Best First'.
Re: Re: Re: Access password protected network share without mapping
by jlongino (Parson) on Dec 27, 2001 at 12:49 UTC
    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.