ipaserver/dcerpc: support Samba 4.21

Samba 4.21 moved samba.trust_utils module to samba.lsa_utils.

Fixes: https://pagure.io/freeipa/issue/9702

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Alexander Bokovoy authored and Florence Blanc-Renaud committed 2024-11-21 10:01:27 +01:00
1 parent 411b29db8f
commit aa81bd25f1
1 file changed
+6 -2
+6 -2
View File
@@ -55,9 +55,13 @@ from samba import ntstatus
import samba
try:
from samba.trust_utils import CreateTrustedDomainRelax
from samba.lsa_utils import CreateTrustedDomainRelax
except ImportError:
CreateTrustedDomainRelax = None
try:
from samba.trust_utils import CreateTrustedDomainRelax
except ImportError:
CreateTrustedDomainRelax = None
try:
from samba import arcfour_encrypt
except ImportError: