OwlCyberSecurity - MANAGER
Edit File: sacl.pyc
� 7��ac @ s� d d l m Z d g Z d d l m Z m Z e � Z d Z e j e � y+ e j e d g d e j d d � �Z Wn e k r� Z e e � � n Xd � Z d S( i����( t print_functiont checkSACL( t FFIt VerificationErrors typedef unsigned char uuid_t[16]; int mbr_check_service_membership(const uuid_t user, const char* servicename, int* ismember); int mbr_user_name_to_uuid(const char* name, uuid_t uu); int mbr_group_name_to_uuid(const char* name, uuid_t uu); t librariest tagt .t _c C s� | j d � } d } t j d � } | | } t j | | � } | rJ t St j | | � } | rw t j | | � } n | r� t St j d � } t j | | | � } | r� | d r� t St S( s Check to see if a given user or group is a member of an OS X Server service's access group. If userOrGroupName is an empty string, we want to know if unauthenticated access is allowed for the given service. @param userOrGroupName: the name of the user or group @type userOrGroupName: C{unicode} @param serviceName: the name of the service (e.g. calendar, addressbook) @type serviceName: C{str} @return: True if the user or group is allowed access to service @rtype: C{bool} s utf-8s com.apple.access_t uuid_ts int *i ( t encodet ffit newt libt mbr_group_name_to_uuidt Truet mbr_user_name_to_uuidt Falset mbr_check_service_membership( t userOrGroupNamet serviceNamet prefixt uut groupNamet groupMissingt resultt isMember( ( sD /opt/cpanel-ccs/.develop/virtualenv/src/twextpy/twext/python/sacl.pyR . s"