From: Frazier, J. J. <Joe...@Pe...> - 2001-09-10 20:49:12
|
Disregard, I sent to the wrong list!! Sorry. > -----Original Message----- > From: Frazier, Joe Jr=20 > Sent: Monday, September 10, 2001 16:48 > To: per...@li... > Subject: Error in PerlSvc when trying to map a drive >=20 >=20 >=20 >=20 > use Win32::Lanman; > if(!Win32::Lanman::NetUseAdd({remote =3D> "\\\\server\\share", > password =3D> "xxxxxx", > username =3D> "user.name", > domain =3D> "domain", > local =3D> "h:", > asg_type =3D> &USE_DISKDEV})) > { > print "Sorry, something went wrong; error: "; > # get the error code > print=20 > Win32::FormatMessage(Win32::Lanman::GetLastError()); > } >=20 > The problem is that I am trying to set up a service which will=20 > a) use the local system account to run > b) be able to map a drive to an external share > c) process files there. =20 >=20 > I FINALLY got Win32::Lanman to map a drive under shell=20 > control (tried Win32::NetResource but kept getting unknown=20 > username or password errors). Now, when trying to "map" a=20 > drive under service control, I get(returned from=20 > Win32::FormatMessage(Win32::Lanman::GetLastError()):A=20 > specified logon session does not exist. It may already have=20 > been terminated. >=20 > I am sure it has something to do with security permissions,=20 > just not sure what to change. I would prefer NOT to run the=20 > service directly under the ID above if possible. >=20 > Please reply directly to this email as I am behind(alot) on=20 > my digests.=20 >=20 > Thanks in advance for any help you can give on this. >=20 > Joe Frazier, Jr > Technical Support Engineer > PeopleClick > 919-645-2916 > joe...@pe... > =20 >=20 > =20 >=20 >=20 > =20 >=20 |