Skip to content

GetDomain does not work in Azure App Service #1267

Open
@mahamr

Description

@mahamr

Hi Team,
I'm internal MSFT (in CSS, IIS/ASP.NET team), and I believe this call fails in an Azure App Service due to the App Service sandbox not allowing any calls to these ports: 137, 138, 139, and 445. The Forest.GetForest(DirectoryContext) method also fails. The error in both cases is:
System.UnauthorizedAccessException - "Access is denied"
This is reproducible by simply running a console app in an App Service with a DC that is reachable, and running GetDomain/GetForest with a user that is allowed to call the domain like this. LDAP calls work without issue, while these other calls do not.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions