APM Rewrite and MS Sharepoint

Hi,

Still seeing issues with certain aspects of using an F5 as a reverse proxy for our Sharepoint system. I now have SSO working just fine, however, we are still having issues getting the Edit/Read only function working as we would expect. After doing quite a bit of research, I ran across this Microsoft KB articular that may shed some light on the issues we are seeing. Just wanted to throw this out and see what others think: Supportability of Rewrite and Redirects with SharePoint 2007/2010/2013

Oh, and we are using rewrites in our setup..

Thoughts… dg

I was evaluating the same thing. The rewrite technology makes me nervous especially with SharePoint and all the components and integration into Office. Use can use APM and SSO without the rewrite technology. Also another thing to consider is that SharePoint especially SP 2010 makes use of SilverLight. Have you tried any Office products yet? If so what was your experience and what version of Office did you use?

Currently only using Office 2010 and Office 2007 loaded on the clients. Just started noticing odd issues while testing… Users are normally expecting to see the message “Open for read only or edit” when connected to the LAN while opening MS documents, but when coming through APM, application just wants to open in office or save as… My question is, How do I turn off rewrite and what are the implications of doing so?

Ok, I turned off rewrite for my site and boom… The opening of Microsoft documents started working as expected when going through APM. However, my SSO is no longer working… Working on this one now… Anyone with ideas why SSO would stop working just off the top of their head?

Thanks,

dg

Two questions:

  1. Is this related to your other post about “Editing sharepoint documents through APM”? And was it always configured behind a portal rewrite?

    DevCentral

  2. What SSO method are you using? You should absolutely be able to do SSO to SharePoint without using portal rewrite, but there may be some subtle differences in the SSO config.

Do you have the NTLM SSO profile applied to the access policy, and if so are you feeding it the correct values in the session variables (session.sso.token.last.username, session.sso.token.last.password, and session.logon.last.domain)?

Yes, I have the NTLM SSO profile applied to the policy and am feeding it the correct tokens. Really kind of puzzled by this one… Now, I am only aware of one way to turnoff rewrite, and that is by using the bypass list in the rewrite profile. Is this correct?

Thanks, Danny

Oh I see. You’re still inside a portal. Is this absolutely required? Can you not just publish SharePoint directly with an access policy?

I believe what I turned on is actually called “Split-Tunneling” ..

I think I have to use the portal. However, tell me more about publishing directly with access policy.

Well, the first thing to look at is the latest SharePoint iApp. You can download it directly from DevCentral and install it.

https://devcentral.f5.com/wiki/iApp.Microsoft-Applications.ashx

The iApp will ask you a few simple questions about your environment and then build out the complete configuration (LTM, APM, NTLM SSO). From there you can tweak, but then you may not have to.

Yeah… I’ve been testing the iAPP. Works well, but still have the same issues with editing documents. If I put the vip/fqdn in the bypass, editing sharepoint documents works as expected. However, SSO breaks… My question is if I put the VIP/FQDN in the bypass list does that automatically exclude using SSO?

Thanks, Danny

This bypass thing is a product of the APM portal function. There is no bypass list, that I’m aware of, when applying an access policy directly to a SharePoint VIP. The access policy does whatever you need it to do for client side authentication, and applies a server side SSO. No resource assignment agent, no webtop. One of the biggest issues with SharePoint document editing under APM is the need for a persistent session cookie, otherwise document editing should work just fine.

Hmm… I will need to dig deeper… Perhaps I’m doing the iAPP incorrectly. I can run the iAPP, enter all the values and when I try to connect, I get the IIS screen instead of a sharepoint screen. In order to get this to work, I take the iAPP out of strict state and add portal access for the sharepoint server. I’ll start digging deeper tomorrow… Thanks, Danny

I’ve been working on the same thing. I know the rewrite would be a problem for SharePoint so I opt not to use it. I have publish my web app directly with an access profile but I’m having trouble opening and editing document in Office. I’m trying the persist cookie but the last thing that I also have in the works is multi-domain SSO. I have a couple of web applications and I would like to SSO into. One of the reason for the cookie based persist because MS Office opens a different connection back to the server.

One of the reason for the cookie based persist because MS Office opens a different connection back to the server.

That’s absolutely at least the primary reason for requiring persistent APM session cookies with SharePoint. Because APM is cookie based, and because documents are generally opened in an application separate from the browser, you need a persistent (file-based) cookie that the app can access, something that’s outside of browser memory. It’s also safe to say, that there are exceptions to this rule, that some tools can use the browser’s in-memory session cookie, and some that can’t even use the file-based cookie. It tends to depend on which SharePoint version, which Office product is installed on the client (if any) and/or which app is used to open documents, and what day of the month it is…

Ok, finally figured out why I was getting the IIS screen. According to my Sharepoint guy, if I connect using the FQDN of the server, in Sharepoint there is a table that will recognize this and return the default page. If I enter only the IP address, I will only get the top level page (IIS) and not the sharepoint page. This, according to my SP guy is because there is no entry for IP only in the SP table. Looking at the iAPP, I tried to enter the FQDN and it was converted to IP address before adding to config.

This explanation sound valid?

Regards,

Danny

Finally got the iAPP working. I wound up working with the SP guy to get the Alternate Access mappings corrected and now all seems to work just fine.. Sweet… However, in order to get this working I had to use the iAPP to create my configs. One thing I noticed is that the iAPP does not use rewrite, which was causing my SP issues all along. That being said, is it possible to modify this iAPP install to provide a Webtop?

Thanks, Danny

So I’m assuming you need a webtop so that you can have multiple “portal-like” options for the user, yes? If so, you may consider doing a webtop link and pointing it to your iApp-based SharePoint VIP.

Yes, that’s what I am after. “Portal-like” options. Let me dig…