
    Id                     x    d dl mZ d dlmZ d dlmZ d dlmZm	Z	 	  e         G d de      Z
y# e$ r dZ
Y yw xY w)    N)enable_net_export_keytab)Net)CommandOptionc                       e Zd ZdZdZej                  ej                  ej                  dZ	 e
dde      gZdgZd
d	Zy)cmd_domain_export_keytabz/Dump Kerberos keys of the domain into a keytab.z%prog <keytab> [options])	sambaoptscredoptsversionoptsz--principalzextract only this principal)helptypekeytabNc                 b    |j                         }t        d |      }|j                  ||       y )N)r   	principal)get_loadparmr   export_keytab)selfr   r
   r	   r   r   lpnets           </usr/lib/python3/dist-packages/samba/netcmd/domain/keytab.pyrunzcmd_domain_export_keytab.run4   s.    '')BdB-CVyA    )NNNN)__name__
__module____qualname____doc__synopsisoptionsSambaOptionsCredentialsOptionsVersionOptionstakes_optiongroupsr   strtakes_options
takes_argsr    r   r   r   r   #   sT    =- !--22"11
 ='D3O
 Z
	Br   r   )samba.getoptgetoptr   sambar   	samba.netr   samba.netcmdr   r   r   ImportErrorr&   r   r   <module>r-      sD   2  *  (BB7 B  $#$s   / 99