Monday, 16 June 2008

Problem using Created By and Last Modified By drop-down options in Advanced Search

There appears to be a bug in MOSS where the Created By and Last Modified By options do not return any results in the Advanced Search page. It appears that these fields only show results when indexing SPS 2003 content! Please have a look at the link below:

Unraveling the mysteries of SharePoint Search: Created By and Last Modified By - http://www.networkworld.com/community/node/19021

There is a "workaround" to fix the Last Modified By issue at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1937319&SiteID=1, but I have not found anything yet on Created By. Basically, you need to map the 'Office:8' and 'ows_Last_x0020_Modified(text)' crawled property to the 'ModifiedBy' managed property.

More info on the behaviour of the Author search can be found here: http://www.networkworld.com/community/node/17708

It appears that when you do a search on the Author column, it takes the 'Author' document property from the Office application first - and if it's blank (or is not an office document like a PDF or SharePoint list item) - it takes the Created By property in SharePoint.

Friday, 13 June 2008

Setting default option in ISA logon form to Private Computer

Now, obviously I would not recommend this as best practice, but I was asked if I could configure the default security option in the ISA 2006 logon form to Private Computer instead of Public (despite venting reluctance) to make it easier for users to logon and use persistent cookies to gain access to Office applications from SharePoint without being prompted to sign in again.

So, if you also want to implement this, this is how you do it:

1. Create a new set of forms in the C:\Program Files\Microsoft ISA Server\CookieAuthTemplates folder on the ISA server and change your rules to use these forms instead of the default (see http://technet.microsoft.com/en-us/library/bb794733.aspx for details).

2. Edit each of these files in notepad:

usr_pwd.htm
usr_pwd_pcode.htm
pwd_pcode.htm
pwd_pcode_nxt.htm

3. Find and remove checked="checked" from this line: <td><input id="rdoPblc" type="radio" name="trusted" value="0" class="rdo" onclick="clkSec()" checked="checked" /></td>

It should now read: <td><input id="rdoPblc" type="radio" name="trusted" value="0" class="rdo" onclick="clkSec()" /></td>

4. Find and add the checked="checked" option to the following line: <td><input id="rdoPrvt" type="radio" name="trusted" value="4" class="rdo" onclick="clkSec()" /></td>

It should now read: <td><input id="rdoPrvt" type="radio" name="trusted" value="4" class="rdo" onclick="clkSec()" checked="checked" /></td>

5. Perform this for all four files listed in step 2.

6. Restart the Microsoft Firewall service.