|Syntactic Confectionery Delight|
Problem using Win32::Permsby rgold (Initiate)
|on Oct 11, 2002 at 20:41 UTC||Need Help??|
rgold has asked for the wisdom of the Perl Monks concerning the following question:
I'm attempting to add a user to a security object using the Win32::Perms package, but have not had any success.
I'm using IndigoPerl, on a Win2K system, rather than ActiveState's Perl. I was able to install the Win32::Perms package using IndioPerl's Package Manager. I obtained the package directly from http://www.roth.net/perl/packages/win32-perms.ppd. The version of IndigoPerl is perl, v5.6.1 built for MSWin32-x86-multi-thread.
The following is a code fragment from my Perl script.
This code always fails. The Win32 error number is 53 which is "The network path was not found". I get the same error if I use a different user (e.g., SYSTEM) or if I use the sd -> Add() instead of Allow().
Note: I've been able to dump the contents of a security descriptor (using Dump() or Get()) and remove a user account from the security descriptor. Also, I've been able to copy a set of permissions from one study descriptor to another.
What am I doing wrong? Or doesn't the Win32::Perms package work with any other Perl except ActiveState?