+
    4Ssiˆ  ã                   ól   € ^ RI t ^ 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)ÚCommandErrorÚOption)ÚCredentials)ÚGetPasswordCommandÚgpg_decryptÚdecrypt_samba_gpg_help)Úsamrc            
       óä   a € ] tR t^"t o RtRtR]P                  R]P                  R]P                  R]P                  /t]! RR]R	7      ]! R
]RRRR7      ]! R]RRRR7      .tR.tRR ltRtV tR# )Úcmd_user_get_kerberos_ticketaw  Get a Kerberos Ticket Granting Ticket as a user

This command gets a Kerberos TGT using the password for a user/computer account.

The username specified on the command is the sAMAccountName.
The username may also be specified using the --filter option.

The command must be run from the root user id or another authorized
user id. The '-H' or '--URL' option supports ldap:// for remote Group
Managed Service accounts, and ldapi:// or tdb:// can be used to
adjust the local path. tdb:// is used by default for a bare path.

The --output-krb5-ccache option should point to a location for the
credentials cache.  The default is a FILE: type cache if no prefix is
specified.

The '--decrypt-samba-gpg' option triggers decryption of the
Primary:SambaGPG buffer to get the password.

Check with '--help' if this feature is available
in your environment or not (the python-gpgme package is required).  Please
note that you might need to set the GNUPGHOME environment variable.  If the
decryption key has a passphrase you have to make sure that the GPG_AGENT_INFO
environment variable has been set correctly and the passphrase is already
known by the gpg-agent.

Example1:
samba-tool user get-kerberos-ticket TestUser1 --output-krb5-ccache=/srv/service/krb5_ccache

Example2:
samba-tool user get-kerberos-ticket --filter='(samAccountName=TestUser3)' --output-krb5-ccache=FILE:/srv/service/krb5_ccache

    z.%prog (<username>|--filter <filter>) [options]Ú	sambaoptsÚversionoptsÚcredoptsÚhostoptsz--filterzBLDAP Filter to get Kerberos ticket for (must match single account))ÚhelpÚtypez--output-krb5-ccachez;Location of Kerberos credentials cache to write ticket intoÚCCACHEÚoutput_krb5_ccache)r   r   ÚmetavarÚdestz--decrypt-samba-gpgÚ
store_trueFÚdecrypt_samba_gpg)r   ÚactionÚdefaultr   z	username?Nc           
     óF  € VP                  4       V n        V'       d   \        '       g   \        \        4      hVf   Vf   \        R4      hVf   R\
        P                  ! V4      ,          p. ROpV	P                  V P                  4      pV P                  VP                  RVR7      pV P                  WÑR V\
        P                  VVR7      pVP                  4       p\        4       pVP                  \        VR,          ^ ,          4      4       VP                  VP!                  4       4       VP#                  R^ R	7      pVP#                  R^ R	7      pVe   VP%                  V4       M“Ve8   \&        P(                  ! 4       p\+        V4      Vn        VP/                  V4       MXVP0                  P3                  R
4      '       g"   VP0                  P3                  R4      '       d   \        R4      h\        R4      hVP5                  V4       VP7                  Wú4       R # )Nz4Either the username or '--filter' must be specified!z((&(objectClass=user)(sAMAccountName=%s))ÚvirtualClearTextUTF16ÚsamAccountNameÚ
unicodePwdF)ÚurlÚrequire_ldapiÚcreds)ÚbasednÚfilterÚscopeÚattrsÚdecrypt)Úidxzldap://zldaps://zÆNo password was available for this user.  Only Group Managed Service accounts allow access to passwords over LDAP, you may need to access the sam.ldb directly on the Samba AD DC and export the file.z'No password was available for this user)r   r   r   )Úget_loadparmÚlpr   r   r   ÚldbÚbinary_encodeÚget_credentialsÚconnect_for_passwordsÚHÚget_account_attributesÚSCOPE_SUBTREEr   Úset_usernameÚstrÚ	set_realmÚdomain_dns_nameÚgetÚset_utf16_passwordr	   ÚPasswordÚlistÚhashÚset_nt_hashr   Ú
startswithÚguessÚget_named_ccache)ÚselfÚusernamer-   r"   Ú
attributesr   r   r   r   r   r   Úpassword_attrsr    ÚsamdbÚobjÚlp_ctxÚutf16_pwÚnt_passÚnt_hashs   &&&&&&&&&&&        ÚU/usr/lib/python3/dist-packages/samba/netcmd/user/readpasswords/get_kerberos_ticket.pyÚrunÚ cmd_user_get_kerberos_ticket.runY   sÍ  € ð ×(Ñ(Ó*ˆŒç§[£[ÜÔ5Ó6Ð6àŠ>˜hÒ.ÜÐUÓVÐVàŠ>Ø?Ä3×CTÒCTÐU]ÓC^Õ_ˆFâRˆà×(Ñ(¨¯©Ó1ˆØ×*Ñ*¨x¯z©zÈÐV[Ð*Ó\ˆà×)Ñ)¨%Ø15Ø17Ü03×0AÑ0AØ0>Ø2Cð *ó Eˆð ×'Ñ'Ó)ˆä“ˆØ×Ñœ3˜sÐ#3Õ4°QÕ7Ó8Ô9Ø�‰˜×-Ñ-Ó/Ô0à—7‘7Ð2¸�7Ó:ˆØ—'‘'˜,¨A�'Ó.ˆØÒØ×$Ñ$ XÕ.ØÒ Ü—m’m“oˆGÜ ›=ˆGŒLØ×Ñ˜gÕ&à�y‰y×#Ñ# I×.Ò.°%·)±)×2FÑ2FÀz×2RÒ2RÜ"ð $yó zð zô #Ð#LÓMÐMØ�‰�FÔØ×Ñ˜vÖ:ó    )r(   )
NNNNNNNNNN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚsynopsisÚoptionsÚSambaOptionsÚVersionOptionsÚCredentialsOptionsÚHostOptionsÚtakes_optiongroupsr   r1   r   Útakes_optionsÚ
takes_argsrH   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @rG   r   r   "   s¢   ø‡ € ñ ðB @€Hð 	�W×)Ñ)Ø�w×-Ñ-Ø�G×.Ñ.Ø�G×'Ñ'ð	Ðñ 	ˆzÐ dÐknÔoÙÐ%¨CØQØÐ&:ô	<ñ 	Ð$Ø*Ø"¨EÐ8Kô	Mð€Mð �€J÷1;ò 1;rJ   r   )r)   Úsamba.getoptÚgetoptrQ   Úsamba.netcmdr   r   Úsamba.credentialsr   Úcommonr   r   r   Úsamba.dcerpcr	   r   © rJ   rG   Ú<module>rc      s1   ðó. Ý ß -Ý )÷ñ õ
 ôh;Ð#5ö h;rJ   