Windows Perl Scripting Forums » Scripts

Win32::Perms not accepting long security group names

(1 post)
  • Started 10 years ago by anowak

  1. anowak
    Member

    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

    Posted 10 years ago #

RSS feed for this topic

Reply

You must log in to post.