+
    4Ssi4                         ^ RI t ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	H
t
HtHt  ! R R]	4      t ! R R]	4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )    N)system_session)SamDB)CommandCommandErrorSuperCommandOptionc            	          a  ] tR t^t o RtRtR]P                  R]P                  R]P                  /t
]! RRR]R	R
R7      .tRR ltRtV tR# )cmd_forest_showzDisplay forest settings.

These settings control the behaviour of all domain controllers in this
forest. This displays those settings from the replicated configuration
partition.
z%prog [options]	sambaoptsversionoptscredopts-H--URL%LDB URL for database or target serverURLHhelptypemetavardestNc                X   VP                  4       pVP                  V4      p\        V\        4       WeR 7      pVP	                  4       pV P
                  : RV: 2p	VP                  V	\        P                  V P                  R7      p
V
^ ,          pV P                  P                  RV	,          4       V P                   F4  p V P                  P                  V: RW,          ^ ,          : R24       K6  	  R#   \         d'    T P                  P                  RT,          4        Kj  i ; i)urlsession_infocredentialslp,)basescopeattrszSettings for %s
: 
z%s: <NO VALUE>
N)get_loadparmget_credentialsr   r   	domain_dnobjectdnsearchldb
SCOPE_BASE
attributesoutfwriteKeyError)selfr   r   r   r   r   credssamdbr&   	object_dnres
res_objectattrs   &&&&&        5/usr/lib/python3/dist-packages/samba/netcmd/forest.pyruncmd_forest_show.run4   s    ##%((,!.*:"'0 OO%	#}}i8	 ll	!%  2 V
		+i78OOD;		dJ4DQ4G4G HI $  ;		 2T 9:;s   0C88-D)(D) NNNN)__name__
__module____qualname____firstlineno____doc__synopsisoptionsSambaOptionsVersionOptionsCredentialsOptionstakes_optiongroupsr   strtakes_optionsr7   __static_attributes____classdictcell____classdict__s   @r6   r
   r
      se      !H 	W))w--G.. 	tW#JS	2M
; ;    r
   c            	          a  ] tR t^Ot o RtRtRtRtR]P                  R]P                  R]P                  /t]! RRR	]R
RR7      .tR.tRR ltRtV tR# )cmd_forest_setzIModify forest settings.

This will alter the setting specified to value.
Nz%prog value [options]r   r   r   r   r   r   r   r   r   valuec                   VP                  4       pVP                  V4      p\        V\        4       WvR 7      pVP	                  4       p	V P
                  : RV	: 2p
\        P                  ! 4       p\        P                  ! W4      Vn	        \        P                  ! V\        P                  V P                  4      WP                  &   VP                  V4       V P                  P                  RV P                  : RV: R24       R# )r   r   zset r"   r#   N)r$   r%   r   r   r&   r'   r)   MessageDndnMessageElementFLAG_MOD_REPLACE	attributemodifyr,   r-   )r/   rO   r   r   r   r   r   r0   r1   r&   r2   ms   &&&&&&      r6   r7   cmd_forest_set.rung   s    ##%((,!.*:"'0 OO%	#}}i8	 KKMvve'..3''9.. 	Q		$..%@ArL   r9   r:   )r;   r<   r=   r>   r?   rV   r'   r@   rA   rB   rC   rD   rE   r   rF   rG   
takes_argsr7   rH   rI   rJ   s   @r6   rN   rN   O   sz     
 IH&H 	W))w--G.. 	tW#JS	2M
 JB BrL   rN   c                   $    ] tR t^}tRtRtR.tRtR# )!cmd_forest_show_directory_servicezDisplay Directory Service settings for the forest.

These settings control how the Directory Service behaves on all domain
controllers in the forest.
?CN=Directory Service,CN=Windows NT,CN=Services,CN=Configurationdsheuristicsr9   N)r;   r<   r=   r>   r?   r'   r+   rH   r9   rL   r6   r\   r\   }   s    
 QH !JrL   r\   c                   "    ] tR t^tRtRtRtRtR# )-cmd_forest_set_directory_service_dsheuristicsaQ  Set the value of dsheuristics on the Directory Service.

This value alters the behaviour of the Directory Service on all domain
controllers in the forest. Documentation related to this parameter can be
found here: https://msdn.microsoft.com/en-us/library/cc223560.aspx

In summary each "character" of the number-string, controls a setting.
A common setting is to set the value "2" in the 7th character. This controls
anonymous search behaviour.

Example: dsheuristics 0000002

This would allow anonymous LDAP searches to the domain (you may still need
to alter access controls to allow this).
r]   r^   r9   N)r;   r<   r=   r>   r?   r'   rV   rH   r9   rL   r6   r`   r`      s     QHIrL   r`   c                   F    ] tR t^tRt/ t]! 4       ]R&   ]! 4       ]R&   RtR# )cmd_forest_directory_servicez*Forest configuration partition management.showr^   r9   N)	r;   r<   r=   r>   r?   subcommandsr\   r`   rH   r9   rL   r6   rb   rb      s$    4K;=K"O"QKrL   rb   c                   2    ] tR t^tRt/ t]! 4       ]R&   RtR# )
cmd_forestzForest management.directory_servicer9   N)r;   r<   r=   r>   r?   rd   rb   rH   r9   rL   r6   rf   rf      s    K'C'EK#$rL   rf   )r)   samba.getoptgetoptrA   
samba.authr   samba.samdbr   samba.netcmdr   r   r   r   r
   rN   r\   r`   rb   rf   r9   rL   r6   <module>rm      sm   &   %  -;g -;`)BW )B\" "N (R< RF FrL   