File: //usr/lib/python3/dist-packages/samba/__pycache__/hostconfig.cpython-310.pyc
o
�/a, � @ sD d Z ddlmZ G dd� de�ZG dd� de�ZG dd� de�Zd S )
zLocal host configuration.� )�SamDBc @ �( e Zd ZdZdd� Zdd� Zdd� ZdS ) �
Hostconfigz[Aggregate object that contains all information about the configuration
of a Samba host.c C �
|| _ d S �N)�lp��selfr � r
�2/usr/lib/python3/dist-packages/samba/hostconfig.py�__init__ �
zHostconfig.__init__c C s
t | j�S r )�SharesContainerr �r r
r
r �
get_shares r
zHostconfig.get_sharesc C s t | j�� ||| jd�S )z�Access the SamDB host.
:param session_info: Session info to use
:param credentials: Credentials to access the SamDB with
)�url�session_info�credentialsr )r r � samdb_url)r r r r
r
r � get_samdb s
�zHostconfig.get_samdbN)�__name__�
__module__�__qualname__�__doc__r r r r
r
r
r r s
r c @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� ZdS )
r zA shares container.c C r r )�_lpr r
r
r r 2 r
zSharesContainer.__init__c C s |dkrt �t| j| �S )N�global)�KeyError�Sharer �r �namer
r
r �__getitem__5 s zSharesContainer.__getitem__c C s&