+
    4Ssi#  ã                   óŒ   € ^ RI t ^ RIHtHt ^ RIHt ^ RIHtH	t	 ^ RI
Ht ^ RIHt ^ RIHtHtHtHt ^ RIHt  ! R R	]4      tR# )
é    N)ÚCalledProcessErrorÚ
check_call)ÚdsdbÚldb)Úsystem_session)Ú	get_bytes)ÚCommandÚCommandErrorÚOptionÚcommon)ÚSamDBc            	       ó¶   a € ] tR t^!t o RtRt]! RRR]RRR7      ]! R	R
]R7      .tR.t	R]
P                  R]
P                  R]
P                  /tRR ltRtV tR# )Úcmd_user_editaÁ  Modify User AD object.

This command will allow editing of a user account in the Active Directory
domain. You will then be able to add or change attributes and their values.

The username specified on the command is the sAMAccountName.

The command may be run from the root userid or another authorized userid.

The -H or --URL= option can be used to execute the command against a remote
server.

Example1:
samba-tool user edit User1 -H ldap://samba.samdom.example.com \
    -U administrator --password=passw1rd

Example1 shows how to edit a users attributes in the domain against a remote
LDAP server.

The -H parameter is used to specify the remote target server.

Example2:
samba-tool user edit User2

Example2 shows how to edit a users attributes in the domain against a local
LDAP server.

Example3:
samba-tool user edit User3 --editor=nano

Example3 shows how to edit a users attributes in the domain against a local
LDAP server using the 'nano' editor.

z%prog <username> [options]z-Hz--URLz%LDB URL for database or target serverÚURLÚH)ÚhelpÚtypeÚmetavarÚdestz--editorzQEditor to use instead of the system default, or 'vi' if no system default is set.)r   r   ÚusernameÚ	sambaoptsÚcredoptsÚversionoptsNc           
     ót  € VP                  4       pVP                  VR R7      p\        V\        4       W‡R7      p	R\        P
                  \        P                  ! V4      3,          p
V	P                  4       p V	P                  VV
\        P                  R7      pV^ ,          P                  p^ RIpT FÝ  p\        P                   ! YŸ4      pTf&   \"        P$                  P'                  R4      pTf   RpTP)                  R	R
7      ;_uu_ 4       pTP+                  \-        T4      4       TP/                  4         \1        TTP2                  .4       \7        TP2                  4      ;_uu_ 4       pTP9                  4       pRRR4       RRR4       Kß  	  T	P;                  X4      p\=        T4      ^,          pT	P?                  XT4      p\A        T4      ^ 8X  d   T PB                  P+                  R4       R#  T	PE                  T4       T PB                  P+                  RT,          4       R#   \         d    \        RT,          4      hi ; i  \4         d   p\5        RT4      hRp?ii ; i  + '       g   i     Lô; i  + '       g   i     EKÞ  ; i  \F         d   p\        RT,          T4      hRp?ii ; i)T)Úfallback_machine)ÚurlÚsession_infoÚcredentialsÚlpz)(&(sAMAccountType=%d)(sAMAccountName=%s)))ÚbaseÚ
expressionÚscopezUnable to find user "%s"NÚEDITORÚviz.tmp)ÚsuffixzERROR: zNothing to do
zFailed to modify user '%s': z Modified User '%s' successfully
)$Úget_loadparmÚget_credentialsr   r   r   ÚATYPE_NORMAL_ACCOUNTr   Úbinary_encodeÚ	domain_dnÚsearchÚSCOPE_SUBTREEÚdnÚ
IndexErrorr
   Útempfiler   Úget_ldif_for_editorÚosÚenvironÚgetÚNamedTemporaryFileÚwriter   Úflushr   Únamer   ÚopenÚreadÚ
parse_ldifÚnextÚmsg_diffÚlenÚoutfÚmodifyÚ	Exception)Úselfr   r   r   r   r   Úeditorr   ÚcredsÚsamdbÚfilterÚdomaindnÚresÚuser_dnr/   ÚmsgÚresult_ldifÚt_fileÚeÚedited_fileÚedited_messageÚmsgs_editedÚ
msg_editedÚres_msg_diffs   &&&&&&&                 Ú8/usr/lib/python3/dist-packages/samba/netcmd/user/edit.pyÚrunÚcmd_user_edit.runT   sO  € à×#Ñ#Ó%ˆØ×(Ñ(¨¸dÐ(ÓCˆÜ˜!¬.Ó*:Ø"'ô0ˆð >Ü×,Ñ,¬c×.?Ò.?ÀÓ.IÐJõKˆð —?‘?Ó$ˆð	HØ—,‘, HØ*0Ü%(×%6Ñ%6ð ó 8ˆCð ˜!•f—i‘iˆGó 	ÛˆCÜ ×4Ò4°UÓ@ˆKàŠ~ÜŸ™Ÿ™¨Ó1�Ø’>Ø!�Fà×,Ñ,°FÐ,×;Ô;¸vØ—‘œY {Ó3Ô4Ø—‘”ð;Ü ¨¯©Ð4Ô5ô ˜&Ÿ+™+×&Ô&¨+Ø%0×%5Ñ%5Ó%7�N÷ '÷ <Ñ;ñ ð$ ×&Ñ& ~Ó6ˆÜ˜+Ó& qÕ)ˆ
à—~‘~ c¨:Ó6ˆÜˆ|Ó Ô!Ø�I‰I�O‰OÐ-Ô.Ùð	MØ�L‰L˜Ô&ð 	�	‰	�‰Ð;¸hÕFÖGøôG ô 	HÜÐ9¸XÕFÓGÐGð	Hûô" *ô ;Ü,¨Y¸Ó:Ð:ûð;úç&×&ú÷ <×;Ñ;ûô( ô 	MÜÐ=ÀÕHÈ!ÓLÐLûð	Músl   Á85H, Ä+I?Ä;IÅI?Å/I,Æ I?Ç7J È,I
ÉI)	ÉI$	É$I)	É)I?É,I<É7I?É?JÊJ7ÊJ2Ê2J7© )NNNNN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úsynopsisr   ÚstrÚtakes_optionsÚ
takes_argsÚoptionsÚSambaOptionsÚCredentialsOptionsÚVersionOptionsÚtakes_optiongroupsrS   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @rR   r   r   !   s‚   ø‡ € ñ!ðD ,€Hñ 	ˆt�WÐ#JØ ¨Sô	2áˆzð !7Ø=@ô	Bð€Mð �€Jà�W×)Ñ)Ø�G×.Ñ.Ø�w×-Ñ-ðÐ÷4Hò 4Hó    r   )r1   Ú
subprocessr   r   Úsamba.getoptÚgetoptr_   Úsambar   r   Ú
samba.authr   Úsamba.commonr   Úsamba.netcmdr	   r
   r   r   Úsamba.samdbr   r   rU   rg   rR   Ú<module>rp      s2   ðó, 
ß 5å ß Ý %Ý "ß >Ó >Ý ôgH�Gö gHrg   