dafthack / dafthack/MailSniper
Get-GlobalAddressList - Exception calling ResolveName (403) Forbidden
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 3.3k
- Forks
- 597
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 1
Description
When attempting to retrieve the GAL from a server with both OWA and EWS enabled it fails with
Get-GlobalAddressList : Exception calling "ResolveName" with "1" argument(s): "The request failed. The remote server returned an error: (403) Forbidden."
At line:1 char:1
- Get-GlobalAddressList -ExchHostname webmail.redacted.com -UserName DOMAIN ...
-
+ CategoryInfo : NotSpecified: (:) [Get-GlobalAddressList], MethodInvocationException + FullyQualifiedErrorId : ServiceRequestException,Get-GlobalAddressList
The FindPeople method fails, and it tries the EWS method which fails as above.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Get-GlobalAddressList entry point and trace how the FindPeople fallback invokes the EWS ResolveName method. Reproduce the 403 response against a server with OWA and EWS enabled, then determine the expected behavior for retrieving the GAL and verify it with an appropriate test or reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100