DCE::ACL

DCE::ACL is a Perl interface to DCE ACL client API.
Download

DCE::ACL Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Doug MacEachern
  • Publisher web site:
  • http://search.cpan.org/~gozer/mod_perl-1.30/lib/Apache/Status.pm

DCE::ACL Tags


DCE::ACL Description

DCE::ACL is a Perl interface to DCE ACL client API. DCE::ACL is a Perl interface to DCE ACL client API.SYNOPSIS use DCE::ACL; $aclh = DCE::ACL->bind($object);DCE::ACL provides a Perl interface to the sec_acl_* client API. As the sec_acl_list_t structure is rather complex, additional classes and methods are provided so Perl scripts can deal with it in a reasonable fashion.DCE::ACL::handle methodsDCE::ACL::handle->bindSee DCE::ACL->bind.$aclh->num_aclsReturns the number of acls in the sec_acl_list_t structure. $num = $aclh->num_acls$aclh->get_manager_typesEquivalent to the sec_acl_get_manager_types function. $manager_types is a array reference. ($num_used, $num_types, $manager_types, $status) = $aclh->get_manager_types();If called in a scalar context, only the $manager_types array reference is returned. $manager = $achl->get_manager_types->; #first manager$aclh->get_accessEquivalent to the sec_acl_get_access function. ($permset, $status) = $aclh->get_access($manager);$aclh->get_printstringEquivalent to the sec_acl_get_printstring function.$printstrings is an array reference of hash references. ($chain, $mgr_info, $tokenize, $total, $num, $printstrings, $status) = $aclh->get_printstring($manager); If called in a scalar context, only the $printstrings reference is returned. $printstrings = $aclh->get_printstring($manager); foreach $str (@$printstrings) { $permstr .= ($str->{permissions} & $entry->perms) ? $str->{printstring} : "-"; }$aclh->test_accessEquivalent to the sec_acl_test_access function. ($ok, $status) = $aclh->test_access($manager, $perms);$aclh->replaceEquivalent to the sec_acl_replace function. $status = $aclh->replace($manager, $aclh->type_object, $list);$aclh->lookupEquivalent to the sec_acl_lookup function. $list is a reference to a sec_acl_list_t structure, blessed into the DCE::ACL::list class. $type is an optional argument which defaults to DCE::ACL-type_object>. ($list, $status) = $aclh->lookup($manager, );$aclh->new_listThis method does a lookup, deleting all entries and returns the empty list. $type is an optional argument which defaults to DCE::ACL-type_object>. ($list, $status) = $aclh->new_list($manager, ); Requirements: · Perl


DCE::ACL Related Software