-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stuck at autodiscover #5
Comments
Did you used the parameter “-allowredirection”? |
Thanks for the quick response. No I did not. I tried it now with the following result: |
In EWSEditor Autodiscover works. |
Thats what I try: |
The user need to be an SMTP-address. If you use “-user” you need also pass with the option “-password” the password for the user account which should impersonate. If you don’t pass the “-user” option the program will be use the current credentials of your session (from the command line or the powershell session). |
Sorry to disturb again :) RemovePrivateFlag.exe -mailbox [email protected] -logonly -foldername "Posteingang" -allowredirection -user [email protected] -password PasswordX -impersonate 2020-02-19 12:46:18,864 [1] INFO RemovePrivateFlag.Program [(null)] - Application started Any tipps? |
can this help? https://stackoverflow.com/questions/11477255/read-email-using-exchange-web-services Maybe adding the version is needed like in EWSEditor? The problem lies in line 313 accordng to output above. What does your comment mean for the second part? Please help :) |
I've tested the version now against O365 and an Exchange 2016. Here it works flawlessly. Against an Exchange 2019 i receive the same error message. Requesting the version with the service creation doesn't remove the error. Against which Exchange version to you running the tool? |
@exentim Could you please try the following build? This is working in my test lab. Requirements for .NET have changed (now 4.8). |
Hello, 2020-02-20 21:38:43,533 [1] DEBUG RemovePrivateFlag.Program [(null)] - Parsing arguments |
part of trace: |
Have you checked the Service Principal Name (SPN) following this post? Can you please send a full trace (anonymized) to [email protected]? |
Hello Thomas,
what can I do to solve this?
2020-02-18 15:09:41,108 [1] ERROR RemovePrivateFlag.Program [(null)] - Connection to mailbox failed
Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: Autodiscover blocked a potentially insecure redirection to https://autodiscover.yxc.de/autodiscover/autodiscover.xml. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback) overload.
bei Microsoft.Exchange.WebServices.Data.ExchangeService.DefaultAutodiscoverRedirectionUrlValidationCallback(String redirectionUrl)
bei Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.CallRedirectionUrlValidationCallback(String redirectionUrl)
bei Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.TryLastChanceHostRedirection[TSettings](String emailAddress, Uri redirectionUrl, TSettings& settings)
bei Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings[TSettings](String emailAddress, List
1 redirectionEmailAddresses, Int32& currentHop) bei Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetLegacyUserSettings[TSettings](String emailAddress) bei Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetLegacyUserSettings(String emailAddress, List
1 requestedSettings)bei Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames)
bei Microsoft.Exchange.WebServices.Data.ExchangeService.GetAutodiscoverUrl(String emailAddress, ExchangeVersion requestedServerVersion, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
bei Microsoft.Exchange.WebServices.Data.ExchangeService.AutodiscoverUrl(String emailAddress, AutodiscoverRedirectionUrlValidationCallback validateRedirectionUrlCallback)
bei Microsoft.Exchange.WebServices.Data.ExchangeService.AutodiscoverUrl(String emailAddress)
bei RemovePrivateFlag.Program.ConnectToExchange(String MailboxID, Boolean allowredirection, String User, String Password, Boolean Impersonisation) in D:\VSREPOSITORIES\RemovePrivateFlag\RemovePrivatFlag\Program.cs:Zeile 317.
Danke, viele Grüße
The text was updated successfully, but these errors were encountered: