0

How can this problem can be solved and there is permission granted to the account used to host the site on IIS server still not getting the query the query is for finding something in AD directory

James Z
12.3k10 gold badges27 silver badges48 bronze badges
asked Feb 24, 2024 at 7:00
4
  • Are you referring to LDAP queries? Since running a query via PowerShell console under your account and via IIS web app under the pool identity differs too much, what you described isn't surprising. There are quite a few other well known issues in my blog post, halfblood.pro/… Commented Feb 24, 2024 at 7:04
  • What did you query and didn't get any query output? And what are you running on Windows powershell? Please edit your question to describe it in detail. Commented Feb 26, 2024 at 2:14
  • I wanted to run ad query to fetch the specefic user detail that query was running fine in powershell but not on iis server Commented Feb 26, 2024 at 5:03
  • Based on your description, maybe you are using some function or code in your website to try to retrieve data from AD, but you are unable to get the required output on the IIS server. But it works fine in Windows PowerShell. Even if they have granted the appropriate permissions to the account hosting the site on the IIS server, there may be a lack of specific permissions required to perform AD queries. This may require adding the application pool identity to the appropriate AD group so that the IIS application pool's identity has the necessary permissions to perform AD queries. Commented Feb 27, 2024 at 8:57

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.