Bug 56296 - office365/query: ValueError: No AD connection alias specified
office365/query: ValueError: No AD connection alias specified
Status: NEW
Product: UCS
Classification: Unclassified
Component: Office 365
UCS 5.0
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: Mail maintainers
Mail maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-07-07 17:42 CEST by Maximilian Janßen
Modified: 2023-07-07 17:42 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022091521000591
Bug group (optional): External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Janßen univentionstaff 2023-07-07 17:42:45 CEST
Maybe related to Bug 54642


Version: 5.0-2 errata425

Error:
Internal server error during "office365/query".
Request: office365/query

Traceback (most recent call last):
  File "%PY3%/univention/management/console/base.py", line 344, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "%PY3%/six.py", line 693, in reraise
    raise value
  File "%PY3%/univention/management/console/base.py", line 247, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY3%/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "%PY3%/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "%PY3%/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY3%/univention/management/console/modules/office365/__init__.py", line 95, in query
    account = AzureAccount(self.adconnection_alias)
  File "%PY3%/univention/office365/microsoft/account.py", line 104, in __init__
    raise ValueError(_('No AD connection alias specified\n') + extra_info)
ValueError: No AD connection alias specified
The reason might be that the Univention Configuration Registry variable office365/adconnection/wizard is not set.
If it's not, you can set to the default value "defaultADconnection"
Command to check: ucr get office365/adconnection/wizard
Command to set: "ucr set office365/adconnection/wizard=defaultADconnection"

Role: domaincontroller_master