Fixed NTLM domain

This commit is contained in:
2022-09-20 16:45:00 +02:00
parent be51f424a8
commit 1b7bc0aaf9

View File

@@ -5,7 +5,6 @@ import sys
import getopt import getopt
import subprocess import subprocess
import atexit import atexit
from requests.models import RequestField
import wx import wx
import wx.adv import wx.adv
import requests import requests
@@ -284,7 +283,7 @@ class LoginDialog(wx.Dialog):
"""check credentials and login""" """check credentials and login"""
if self.username.GetValue() not in ("", None) and self.password.GetValue() not in ("", None): if self.username.GetValue() not in ("", None) and self.password.GetValue() not in ("", None):
session = self.GetParent().session session = self.GetParent().session
session.auth = requests_ntlm.HttpNtlmAuth("sr\\"+self.username.GetValue(), self.password.GetValue()) session.auth = requests_ntlm.HttpNtlmAuth("sanrossore\\"+self.username.GetValue(), self.password.GetValue())
try: try:
login = session.get('https://report.casadicurasanrossore.it:8443/Reports/browse/') login = session.get('https://report.casadicurasanrossore.it:8443/Reports/browse/')
if login.status_code == 200: if login.status_code == 200: