Office365 용 python exchangelib을 구성하려고하는데 어떻게 든 작동하지 않습니다. 회사 방화벽 때문인지 또는 구성 오류 때문인지 확실하지 않습니다.Exchangelib office365 auth fail : 무한 루프
autodiscover 링크가 있거나없는 40 개 이상의 config를 시도했습니다.
개인 사서함 계정이 아닌 그룹 사서함에 연결하려고합니다.
코드 :
from exchangelib import DELEGATE, Account, Credentials, IMPERSONATION, EWSDateTime, EWSTimeZone, Configuration, NTLM, CalendarItem, Message, Mailbox, Attendee, Q
from exchangelib.folders import ExtendedProperty, FileAttachment, ItemAttachment, HTMLBody
import logging
config = Configuration(
#service_endpoint='https://triedthisservertoo.com/EWS/Exchange.asmx',
server='localSMTPserver',
credentials = Credentials(
username='[email protected]',
password='topsecret'),
auth_type=NTLM,
verify_ssl=False
)
account = Account(
primary_smtp_address='[email protected]',
autodiscover=False,
config=config,
access_type=IMPERSONATION)
logging.basicConfig(level=logging.DEBUG)
pprint (account.folders())
출력 (무한 루프, 분명히) :
C:\Users\mcindea\Downloads\dist\exchangelib-1.7.6>python test.py
C:\Users\mcindea\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\packages\urllib3\connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding c InsecureRequestWarning)
C:\Users\mcindea\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\packages\urllib3\connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding c InsecureRequestWarning)
C:\Users\mcindea\AppData\Local\Programs\Python\Python35-32\lib\site-packages\requests\packages\urllib3\connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding c InsecureRequestWarning)