%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/samba/netcmd/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/samba/netcmd/__pycache__/nettime.cpython-312.pyc

�

�I�d���J�ddlmZddlmZddlmZddlmZGd�de�Z	y)�N�)�common)�Net)�Commandc�n�eZdZdZdZejejejd�Z	dgZ
		dd�Zy)�cmd_timea�Retrieve the time on a server.

This command returns the date and time of the Active Directory server specified on the command.  The server name specified may be the local server or a remote server.  If the servername is not specified, the command returns the time and date of the local AD server.

Example1:
samba-tool time samdom.example.com

Example1 returns the date and time of the server samdom.example.com.

Example2:
samba-tool time

Example2 return the date and time of the local server.
z%prog [server-name] [options])�	sambaopts�credopts�versionoptszserver_name?Nc��|j�}|j|d��}t|||j��}|�t	j
|�}|jj|j|�dz�y)NT)�fallback_machine)�server�
)	�get_loadparm�get_credentialsr�	ipaddressr�netcmd_dnsname�outf�write�time)�self�server_namer
r	r�lp�creds�nets        �6/usr/lib/python3/dist-packages/samba/netcmd/nettime.py�runzcmd_time.run5sm��
�
#�
#�
%���(�(��d�(�C���%��H�$6�$6�7���� �/�/��3�K��	�	�������-��4�5�)NNNN)�__name__�
__module__�__qualname__�__doc__�synopsis�options�SambaOptions�CredentialsOptions�VersionOptions�takes_optiongroups�
takes_argsr�rrrrsH��
�/�H��)�)��.�.��-�-���!�!�J�=A��6rr)
�samba.getopt�getoptr$�r�	samba.netr�samba.netcmdrrr*rr�<module>r0s!��&����
 6�w� 6r

Zerion Mini Shell 1.0