ActiveState Powered by ActiveState

ActiveState Community


Win32::Perms not accepting long security group names

Posted by anowak on 2008-05-12 18:27
OS: Windows

Hi,

I am having an issue with Win32::Perms and applying security groups with long names?

I create a group "this.is.a.very.long.security.group.name.that.does.not.work" under the domain MYDOMAIN

code is as below

=======================================
use Win32::Perms;
Win32::Perms::LookupDC(0);

my $folder = "C:\\MyFolder";

my $permission = new Win32::Perms( $folder ) or print $!;
$permission->Allow("MYDOMAIN\\this.is.a.very.long.security.group.name.that.does.not.work", 1179817, 3);
$permission->Set();
$permission->Close();
=======================================

When I read the permissions they seem to be fine it just does not apply them?.

Any ideas why this would be?

Regards

-->