Advertisement

11.01.2007 at 06:40AM PDT, ID: 22932212
[x]
Attachment Details

MOSS + Sharepoint + Forms services + constrained delegation problem

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2
Tags:

moss, infopath, sharepoint

Hi all,

 

I'm facing an authentication delegation issue in MOSS 2007. The setup and problem is described below. If you need any more details feel free to ask.

 

Basically the setup I'm looking at is the following:

MOSS2007 enterprise server = SRV4
Member server with IIS and ASP.NET = SRV3
Domain controller with SQL = SRV2
Client = CLIENT
All systems have been properly configured so that the required SPN's are there and kerberos constrained delegation is enabled. Furthermore all IIS servers and sharepoint have been configured to support integrated authentication. I have verified that authentication is in fact taking place through kerberos, just to make sure NTLM is not in the way.

I've installed a basic webservice on SRV3 which connects to a DB on SRV2 using integrated authentication. All it does it read 1 column from the DB. It is setup properly to impersonate the user who accesses the webservice. When testing the webservice directly from the client everything works fine and I get the results back.

So we move on and create a basic form in infopath which uses the webservice to fill entries in a drop-down box. When I test this form in infopath everything works fine, without asking for authentication so integrated auth works. Next I convert the data connection to a udcx file which I put in a data connection library on SRV4. When testing the form again using infopath it works. So far so good. Now when I publish this form to a sharepoint library and try to open it from CLIENT it does not work and provide me with the well known error "An error occurred accessing a data source".

When I check in the sharepoint logs I get the following:

System.Net.WebException: The remote server returned an error: (401) Unauthorized. ...

When I check the entries in the IIS log on SRV3 I can see the 401, and it does not provide any user authentication. Also when I use a network sniffer to check kerberos traffic I can clearly see that Sharepoint isn't even trying to get a kerberos ticket for the user and the service HTTP/SRV3.

I've also checked out some other possibilities, such as MOSS sso, but to no avail (If I'm not mistaken I wouldn't even need SSO in this scenario since everything is based on kerberos and located inside one domain). At this point I can only come to the conclusion that sharepoint (or forms services) does not attempt to authenticate to the back-end webservice with the users credentials (or any credentials for that matter).

So does anyone have a clue as to what the reason for this issue might be? Are there some settings you should change to make sure SP forms services passes the credentials of the user to the BE webservice...?

I can get everything to work just fine when I define a static user in the webservice to connect to the DB and allow anonymous access to the webservice. However this is not a good base to build an enterprise solution on. Auditing should be available at all levels of the information chain, certainly on the DB level.

Any help would be appreciated,

Regards

Answered By: Robbie_Leggett
Expert Since: 06/21/2007
Accepted Solutions: 752
Computer Expertise: Guru
Robbie_Leggett has been an Expert for 1 year 6 months, during which he has posted 2611 comments and answered 752 questions. Robbie_Leggett is just one of 1736 experts in the MOSS-Sharepoint Zone. 1 expert collaborated on this answer, which was graded a "B" by the asker.
 
 
 
 
20081119-EE-VQP-47 / EE_QW_2_20070628