+
    4Ssi                         ^ RI t ^ RIt^ RIHtHt ^ RIHtHtHtH	t	 ^ RI
Ht ^ RIHt RtRt ! R R	]]4      tR
 tR tR t ! R R]]	4      tR# )    N)PopenPIPE)
gp_pol_extdrop_privilegesgp_file_appliergp_misc_applier)NamedTemporaryFile)loga
  
### autogenerated by samba
#
# This file is generated by the gp_scripts_ext Group Policy
# Client Side Extension. To modify the contents of this file,
# modify the appropriate Group Policy objects which apply
# to this machine. DO NOT MODIFY THIS FILE DIRECTLY.
#

z 
### autogenerated by samba ###
c                   :   a  ] tR t^&t o R tRR ltRR ltRtV tR# )gp_scripts_extc                    R # )zUnix Settings/Scripts )selfs   &9/usr/lib/python3/dist-packages/samba/gp/gp_scripts_ext.py__str__gp_scripts_ext.__str__'   s    &    Nc           
       aa V FR  w  rE\        V 4      V9   g   K  V\        V 4      ,          P                  4        F  w  rgV P                  WFV4       K  	  KT  	  V EF  pVP                  '       g   K  R p	RV	,          RRV	,          RRV	,          RRV	,          R/oR	p
\        P
                  P                  VP                  V
4      pV P                  V4      pV'       g   K  / pVP                   F  pVP                  SP                  4       9   g   K$  VP                  P                  4       '       g   KF  VP                  V9  d   . WP                  &   WP                  ,          P                  VP                  4       K  	  VV3R
 lpVP                  4        F8  w  ppTpV P                  ! V!  pV P                  VP                   VVVVV4       K:  	  V P#                  VP                   VP                  4       R7       EK  	  R# )%Software\Policies\Samba\Unix Settings%s\Daily Scriptsz/etc/cron.daily%s\Monthly Scriptsz/etc/cron.monthly%s\Weekly Scriptsz/etc/cron.weekly%s\Hourly Scriptsz/etc/cron.hourlyzMACHINE/Registry.polc                   < . pS'       g
   SV ,          MSpV F  p\        R RRVR7      ;_uu_ 4       pR\        ,          pVRV,          ,          pVP                  V4       \        P                  ! VP
                  R4       VP                  VP
                  4       RRR4       K  	  V#   + '       g   i     K  ; i)gp_zw+F)prefixmodedeletedirz#!/bin/sh
%sz%s
i  N)r	   introwriteoschmodnameappend)	keynameentriesretcron_dirdatafcontentscdirsectionss	   &&     r   applier_func9gp_scripts_ext.process_group_policy.<locals>.applier_funcB   s    C8<x0$H '/u47<(L LOP'6'>H$5HGGH-HHQVVU3JJqvv.L L !( JL L Ls   A+B,,B=keepN)stritemsunapplyfile_sys_pathr"   pathjoinparser'   r&   keysr*   stripr%   generate_value_hashapplyr$   clean)r   deleted_gpo_listchanged_gpo_listr-   guidsettings	attributescriptgporeg_keypol_filer7   pol_confpolicieser/   r&   r'   
value_hashr.   s   &&&f               @r   process_group_policy#gp_scripts_ext.process_group_policy*   s   .ND4yH$)1#d))<)B)B)D%ILL&9 *E /
 $C   D07:=N2W<?R1G;>P1G;>PS 2ww||C$5$5x@::d+!))AyyHMMO399H424HYY/ +22166:	 *
 )1(8$GW !(I "&!9!97!CJJJsxxJ&1 )9 

388(--/
:U $r   c                   / pR V,          pVP                   '       d   \        P                  P                  VP                   V4      pV P	                  V4      pV'       g   V# VP
                   F  pVP                  P                  R4      R,          pVP                  R4      '       g   K>  VP                  P                  4       '       g   K`  WP                  4       9  d   . W8&   W8,          P                  VP                  4       K  	  V# )z%s/Registry.pol\Scripts)r6   r"   r7   r8   r9   r'   r&   splitendswithr*   r;   r:   r%   )	r   rE   targetoutputrG   r7   rH   rJ   keys	   &&&      r   rsopgp_scripts_ext.rsop\   s    $v-77<< 1 18<Dzz$'H%%iiood+B/<<	**qvv||~~++-/&(K&&qvv. & r   r   N)MACHINE)	__name__
__module____qualname____firstlineno__r   rL   rW   __static_attributes____classdictcell__)__classdict__s   @r   r   r   &   s     '0;d r   r   c                    \        R RRV .\        \        R7      pVP                  4       w  r#VP                  ^ 8w  d   \        P
                  ! RV,          4       \        P                  ! \        : R\        : 2VP                  4       \        P                  4      p\        V4      ^8X  d(   V^ ,          P                  4       P                  R4      pM. p\        P                  ! R\        : R\        : R2VP                  4       \        P                  4      p\        V4      ^8X  d9   RP                  V^ ,           Uu. uF  qfP                  4       NK  	  up4      pWu3# VP                  4       pWu3# u upi )crontabz-l-ustdoutstderrzFailed to read the crontab: %sz(.*)
z.*)r   r   communicate
returncoder
   warningrefindallr    enddecodeDOTALLlenr;   rR   r8   )usernamepouterrmr'   lotherss   &       r   fetch_crontabry   l   s   y$h/TJA}}HC||q4s:;


,cjjlBIIFA
1v{A$**,$$T*


uc2CJJL"))LA
1v{qt4t!GGIt45 ? ? 5s   E7c                     \        R V RV.\        \        R7      pVP                  4       w  r4VP                  ^ 8w  d   \	        RV,          4      hR# )rc   rd   re   zFailed to install crontab: %sN)r   r   ri   rj   RuntimeError)fnamerr   rs   _ru   s   &&   r   install_crontabr~   }   sH    y%x0dKA]]_FA||q:S@AA r   c                    \        4       ;_uu_ 4       p\        V4      ^ 8  dK   VP                  RP                  V\        RP                  V4      \
        .4      P                  4       4       MVP                  VP                  4       4       VP                  4        \        VP                  V 4       RRR4       R#   + '       g   i     R# ; i)r   rh   N)
r	   rq   r!   r8   r    rn   encodeflushr~   r$   )rr   rx   r'   r+   s   &&& r   install_user_crontabr      s    			w<!GGDIIvuIIg&- ..4fh8 GGFMMO$		) 
			s   B B==C	c                   D   a a ] tR t^t oR tR tR tV 3R ltRtVt	V ;t
# )gp_user_scripts_extc                    \        V P                  4      w  rEW59   d(   VP                  V4       \        V P                  WE4       V P	                  W4       R # rY   )ry   rr   remover   cache_remove_attribute)r   rA   rC   entryrx   r'   s   &&&&  r   r5   gp_user_scripts_ext.unapply   s@    '6NN5! @##D4r   c                    V P                  W4      p\        V P                  4      w  rVV'       d   W69  d<   VP                  V4       \	        V P                  WV4       V P                  WV4       R # R # rY   )cache_get_attribute_valuery   rr   r%   r   cache_add_attribute)r   rA   rC   r   old_valrx   r'   s   &&&&   r   r=   gp_user_scripts_ext.apply   sY    00A'6%.NN5! @$$Te< /r   c           	        V FR  w  r4\        V 4      V9   g   K  V\        V 4      ,          P                  4        F  w  rVV P                  W5V4       K  	  KT  	  V EF  pVP                  '       g   K  R pRV,          RRV,          RRV,          RRV,          R/p	R	p
\        P
                  P                  VP                  V
4      p\        R
V P                  V4      pV'       g   K  . pVP                   F  pVP                  V	P                  4       9   g   K$  VP                  P                  4       '       g   KF  WP                  ,          pVP                  : RV P                  VP                  4      : 2pVP                  V4       V: RVP                  : 2pV P!                  VP"                  WV4       K  	  V P%                  VP"                  VR7       EK  	  R# )r   r   z@dailyr   z@monthlyr   z@weeklyr   z@hourlyzUSER/Registry.polroot: r1   N)r3   r4   r5   r6   r"   r7   r8   r   r9   r'   r&   r:   r*   r;   generate_attributer%   r=   r$   r>   )r   r?   r@   rA   rB   rC   r   rE   rF   r.   rG   r7   rH   attrsrJ   	cron_freqs   &&&             r   rL   (gp_user_scripts_ext.process_group_policy   sr   .ND4yH$(0T(;(A(A(C$ILL%8 )D /
 $C   D07:X2W<z1G;i1G;iJ /ww||C$5$5x@*64::tD!))AyyHMMO3$,YY$7	/0yy/3/F/Fqvv/N%P	Y/+4aff =

388Y> * 

388%
0+ $r   c                &   < \         SV `  VR R7      # )USER)rT   )superrW   )r   rE   	__class__s   &&r   rW   gp_user_scripts_ext.rsop   s    w|C|//r   r   )r[   r\   r]   r^   r5   r=   rL   rW   r_   r`   __classcell__)r   ra   s   @@r   r   r      s     5=1:0 0r   r   )r"   rl   
subprocessr   r   samba.gp.gpclassr   r   r   r   tempfiler	   samba.gp.util.loggingr
   r    rn   r   ry   r~   r   r   r   r   r   <module>r      sZ   "  "  ' %		DZ DL"B*.0./ .0r   