%PDF- %PDF-
| Direktori : /usr/lib/python3/dist-packages/samba/netcmd/__pycache__/ |
| Current File : //usr/lib/python3/dist-packages/samba/netcmd/__pycache__/fsmo.cpython-312.pyc |
�
�I�d�Q � �� � d dl Z d dlmZ d dlZd dlmZ d dlmZmZ d dl m
Z
d dlZ d dlm
Z
mZmZmZ d dlmZ d� Zd� Zd � Z G d
� de
� Z G d� d
e
� Z G d� de
� Z G d� de� Zy)� N)�LdbError)�drsuapi�misc)�system_session)�Command�CommandError�SuperCommand�Option)�SamDBc �D � | j |t j dg�� }d|d v r0t j | |d d d j d� � }|S d}|S # t $ r6}|j \ }}|t j
k( rt
d|z � �� d}~ww xY w)znGets the owner of an FSMO role
:param roledn: The DN of the FSMO role
:param role: The FSMO role
�
fSMORoleOwner��scope�attrsz+The '%s' role is not present in this domainNr �utf8) �search�ldb�
SCOPE_BASEr �args�ERR_NO_SUCH_OBJECTr �Dn�decode)�samdb�roledn�role�res�e7�num�msg�master_owners �3/usr/lib/python3/dist-packages/samba/netcmd/fsmo.py�get_fsmo_roleownerr"