mirror of
https://github.com/Set-OutlookSignatures/Set-OutlookSignatures.git
synced 2026-04-26 10:45:52 +03:00
[GH-ISSUE #131] Error connecting to Outlook Web: Integrated Windows Authentication failed #59
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LSET2014 on GitHub (Nov 28, 2024).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/131
Originally assigned to: @LSET2014 on GitHub.
Issue happens in the latest release
Previously solved issues and documentation
Code of Conduct
What happened?
Hello, I am running the script mostly with default parameters, but adding the following command:
powershell.exe -ExecutionPolicy Bypass -File .\Set-OutlookSignatures_v4.15.0\Set-OutlookSignatures.ps1 -Mailbox name@domain.com.ar -GraphOnly $true
and after logging in and authenticating, I get an error.
If I do not add -GraphOnly $true, I get the following:
Get email addresses @2024-11-28T12:11:33-03:00@
Get email addresses from Outlook Web
mail@domain.com.ar
Set up environment for connection to Outlook Web
Connect to Outlook Web
Creating new connection
Error connecting to Outlook Web: Integrated Windows Authentication failed, and there is no EXO OAuth access token available.
Check verbose output for details and solution hints.
The 'SignaturesForAutomappedAndAdditionalMailboxes' feature is reserved for Benefactor Circle members.
Find out details in '.\docs\Benefactor Circle'.
I do not use Benefactor Circle.
I use EXO and all emails are in Azure.
What might be missing or need to be checked?
Thanks.
Lucas
@GruberMarkus commented on GitHub (Nov 28, 2024):
Hi @LSET2014,
please run Set-OutlookSignatures with the "-verbose" parameter, save the full output to a file (this might help: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/?tab=readme-ov-file#148-how-can-i-log-the-software-output) and post it here.
Do not modify the script output before posting the file here, as this may lead to a wrong analysis.
@LSET2014 commented on GitHub (Nov 28, 2024):
logfile.txt
I ran the collector like this.
Start-Transcript -Path 'c:\logfile.txt'; & powershell.exe -ExecutionPolicy Bypass -File .\Set-OutlookSignatures_v4.15.0\Set-OutlookSignatures.ps1 --verbose; Stop-Transcript
Ok?
Tanks
Lucas
@GruberMarkus commented on GitHub (Nov 28, 2024):
Use
-verboseinstead of--verbose(only one-).As you start the command from PowerShell, you can make it easier:
Start-Transcript -Path 'c:\logfile.txt'; & .\Set-OutlookSignatures_v4.15.0\Set-OutlookSignatures.ps1 -verbose; Stop-TranscriptPlease upload a new log file. The one you uploaded starts somewhere in the middle, the important parts are missing.
@LSET2014 commented on GitHub (Nov 28, 2024):
Again
logfile.txt
@GruberMarkus commented on GitHub (Nov 28, 2024):
I kindly asked to not modify the output of the script. Is dominio.com.ar you real mail domain, or is it citycenter-rosario.com.ar?
@LSET2014 commented on GitHub (Nov 28, 2024):
please, apologies
logfile2.txt
This is final log file
@GruberMarkus commented on GitHub (Nov 28, 2024):
You have not defined any profile in Outlook, so Set-OutlookSignatures needs to connect to Outlook Web to get information.
It tries to do this via Autodiscover with Integrated Windows Authentication, which fails. It fails because not even an Autodiscover endpoint an be found. Maybe you never had Exchange on premises and only use mailboxes in the cloud?
Then, Set-OutlookSignatures does not continue to connect with Exchange Online, as no Graph token can be found. This part is a bug in Set-OutlookSignatures, and it will take me some time to solve it (v4.16.0 will contain a fix for this).
Your on-prem setup does not seem quite right, too:
My proposal: Either fix your on-prem sync with Entra ID, your internal DNS, etc. --- or use '
-GraphOnly true' to not use on-prem Active Directory at all but Entra ID. In the latter case, don't forget to create the required EntraID app, as described in the Quick Start Guide.Please let me know which route you want to go.
@GruberMarkus commented on GitHub (Nov 28, 2024):
Maybe it's not a bug in Set-OutlookSignatures, but a follow-up effect of (missing) attributes in your environment.
Which value does the attribute '
msexchrecipienttypedetails' of the Active Directory object 'CN=Lucas Avalos,OU=Tecnologia,OU=SISTEMAS,OU=01_CASINO,DC=casinoderosario,DC=lan' have?I guess it's empty.
@LSET2014 commented on GitHub (Nov 28, 2024):
I'm not sure about "You have not defined any profile in Outlook, so Set-OutlookSignatures needs to connect to Outlook Web to get information," but I do have a profile added in Outlook New (client).
I use the client daily, and the email account is in Azure with Entra ID.
I tried using -GraphOnly true, and it prompts:
"Opening new browser window and waiting for you to authenticate. Stopping script execution after five minutes."
BUT login:
Sign-in Error:
We’re sorry, but we’re having trouble signing you in.
AADSTS500113: No reply address is registered for the application.
Troubleshooting Details:
When contacting the administrator, provide them with this information.
Copy to Clipboard:
Request Id: 994b2d0c-dcda-4176-bf3b-9bfb526e3000
Correlation Id: 2ec5e22c-fba6-4fe2-bbd8-23b85e007fcd
Timestamp: 2024-11-28T18:03:07Z
Message: AADSTS500113: No reply address is registered for the application.
Mark sign-in errors for review: Enable marking
If you plan to request help with this issue, enable marking and try to reproduce the error within 20 minutes. Marked events make diagnostics available to the administrator.
@GruberMarkus commented on GitHub (Nov 28, 2024):
New Outlook is not Outlook. New Outlook is Outlook Web.
'
AADSTS500113: No reply address is registered for the application.' means that you have not configured the Entra ID app according to the documentation, it at least misses the correct redirect URI.@GruberMarkus commented on GitHub (Nov 28, 2024):
Also, (Classic) Outlook is configured as default Outlook client, not New Outlook.
@LSET2014 commented on GitHub (Nov 28, 2024):
Ok, I'll look for the documentation where it talks about:
"configured the Entra ID app according."
@GruberMarkus commented on GitHub (Nov 28, 2024):
What about the following?
Which value does the attribute 'msexchrecipienttypedetails' of the Active Directory object 'CN=Lucas Avalos,OU=Tecnologia,OU=SISTEMAS,OU=01_CASINO,DC=casinoderosario,DC=lan' have?
I guess it's empty.
@LSET2014 commented on GitHub (Nov 28, 2024):
yes empty
@GruberMarkus commented on GitHub (Nov 28, 2024):
Than it's not a bug in Set-OutlookSignatures, but either in your on-prem Active Directory or your Set-OutlookSignatures (the Quick Start Guide, chapter 2 in the README file, covers this scenario).
I think this issue can be closed as the initial problem has been solved, and hints to several others have been given.
Do you agree?
@LSET2014 commented on GitHub (Nov 28, 2024):
yes.
Thanks.
Lucas
@GruberMarkus commented on GitHub (Nov 28, 2024):
My pleasure!