+
    4Ssi                     d    ^ RI Ht ^ RIHtHt ^ RIHt ^ RIH	t	H
t
Ht ^ RIHt  ! R R]	4      tR# )    N)dsdbldb)system_session)CommandCommandErrorOption)SamDBc            	          a  ] tR t^t o RtRt]! RRR]RRR7      .tR	R
.t	R]
P                  R]
P                  R]
P                  /tRR ltRtV tR# )cmd_user_movea  Move a user to an organizational unit/container.

This command moves a user account into the specified organizational unit
or container.
The username specified on the command is the sAMAccountName.
The name of the organizational unit or container can be specified as a
full DN or without the domainDN component.

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 move User1 'OU=OrgUnit,DC=samdom,DC=example,DC=com' \
    -H ldap://samba.samdom.example.com -U administrator

Example1 shows how to move a user User1 into the 'OrgUnit' organizational
unit on a remote LDAP server.

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

Example2:
samba-tool user move User1 CN=Users

Example2 shows how to move a user User1 back into the CN=Users container
on the local server.
z*%prog <username> <new_parent_dn> [options]z-Hz--URLz%LDB URL for database or target serverURLH)helptypemetavardestusernamenew_parent_dn	sambaoptscredoptsversionoptsNc                   VP                  4       pVP                  VR R7      p\        V\        4       WR7      p	\        P
                  ! WP                  4       4      p
R\        P                  \        P                  ! V4      3,          p V	P                  V
V\        P                  R7      pV^ ,          P                  p T	P                  T4      p\        P
                  ! T	\#        T4      4      pTP%                  \'        T4      ^,
          4       TP)                  T4        T	P+                  TT4       T P,                  P/                  R
T: RT: R24       R#   \         d    \        RT,          4      hi ; i  \          d   p\        RT: RT: 24      hRp?ii ; i  \          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"zInvalid new_parent_dn "z": NzFailed to move user "%s"zMoved user "z" into "z"
)get_loadparmget_credentialsr	   r   r   Dn	domain_dnr   ATYPE_NORMAL_ACCOUNTbinary_encodesearchSCOPE_SUBTREEdn
IndexErrorr   normalize_dn_in_domain	Exceptionstrremove_base_componentslenadd_baserenameoutfwrite)selfr   r   r   r   r   r   r   credssamdbr#   filterresuser_dnfull_new_parent_dnefull_new_user_dns   &&&&&&&          8/usr/lib/python3/dist-packages/samba/netcmd/user/move.pyruncmd_user_move.runI   s   ##%((d(C!.*:"'0FF5//"34	=,,c.?.?.IJK	H,,I*0%(%6%6  8C !fiiG	3!&!=!=m!L
 66%W6//Gq0@A!!"45	ILL"23 			!#57 	8#  	H9XFGG	H
  	3 -q 2 3 3	3  	I9HDaHH	Is<   5E E? &F% E<?F"
FF"%G0GG )NNNN)__name__
__module____qualname____firstlineno____doc__synopsisr   r,   takes_options
takes_argsoptionsSambaOptionsCredentialsOptionsVersionOptionstakes_optiongroupsr=   __static_attributes____classdictcell__)__classdict__s   @r<   r   r      so     : <H 	tW#JS	2M
 o.JW))G..w--!8 !8    r   )samba.getoptgetoptrH   sambar   r   
samba.authr   samba.netcmdr   r   r   samba.samdbr	   r   r?   rP   r<   <module>rW      s'   ,   % 6 6 M8G M8rP   