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
-
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/…Lex Li– Lex Li2024年02月24日 07:04:36 +00:00Commented 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.YurongDai– YurongDai2024年02月26日 02:14:59 +00:00Commented 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 serverMontu Jain– Montu Jain2024年02月26日 05:03:12 +00:00Commented 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.YurongDai– YurongDai2024年02月27日 08:57:46 +00:00Commented Feb 27, 2024 at 8:57