Showing posts with label search forms authentication pdf search. Show all posts
Showing posts with label search forms authentication pdf search. Show all posts

Saturday, July 7, 2007

Moss 2007 Forms authentication

As we know that by default Share point picks the users list from the ActiveDirectory(Windows Authentication). we dont have forms authentication concept in sps3 it was introduced in Moss 2007. To enable forms authentication follow the below steps.

Create aspnetdb database to store all our roles and users. You will find this database installed at 'c:\windows\microsoft.net\framework\v2.0.50727' if you have Visual Studio 2005 installed in your machine. go there and run aspnet_regsql. To Create your roles and membership data on the sql server you need to edit web.config for the site.we need to supply the connection string details for our aspnetdb. Just outside the system.web tag put:




and inside the system.web put the following code










Once you’ve edited both web.config’s go to a command prompt and do an iisreset.
Now we need to add some users to our database. The easiest way to do this is to create an ASP.NET 2.0 website using Visual Studio 2005 (or Visual Web Dev). Add a web.config to the project and then add exactly the same connection string as you did above for your new SharePoint site. Build the project.

Back in Visual Studio, under the website menu, select the option for ASP.NET Configuration. This opens up the ASP.NET web site administration tool where we can add the users and roles we want.
Select the Security link, create a role (something like administrators), and then go and add a user.

Now go to Application Management page in Central Admin and click on Authentication Providers. select the site you wish to change the authentication provider to Forms for. Once you've selected it you'll see Windows as the MemberShipProviderName.
Set the authentication type to Forms and enter the Member Ship Provider Name to AspNetSqlMembershipProvider. If anonymous access isn't ticked, tick that now.
Goto Central Administration -> Application Management -> site collection administrators – and enter the username created by the asp.net application.

Now when you try login into the site will redirect to the login page, where you need to provide the credentials of the user that you have created.

Saturday, June 23, 2007

Moss 2007 PDF search

Moss 2007 out box feature doesn't supports the searching of pdf documents. The search is works fare enough in case of word documents and html, aspx pages and blah blah.

search the pdf files one need to install PDF IFilters 6.0 version. But which works only with x32 bit

I had really tough time with my production machine when i came to know that PDF search is not working. I cracked my head even though i had PDF IFilter is in place in Production machine. Its working fine in Development and Testing boxes. I googled a lot and finally i found a solution. Foxit PDF IFilter x64 bit which acts as a plug-in for full-text search engines.

Before intalling make sure that you have done with the following steps. 1. Goto Central Administration 2. Click on shared services and goto Search settings 3. Click on File Types and add new File Type as PDF

Lets see how it works........
Step 1, the search engine go through a designate place, e.g. a file folder or a database, and indexes all documents or newly modified documents, including PDF documents, in the background and create internal data to store indexing result.
Step 2, a user specify some keyword he would like to search and the search engine answer the query immediately by looking up the indexing result and respond to the user with all the documents that contains the keyword.
During Step 1, the search engine itself doesn't understand format of a PDF document. Therefore, it looks in windows registry for an appropriate PDF IFilter and finds the Foxit PDF IFilter. Foxit PDF IFilter understand PDF format. It filters out embedded formatting and extracts text from the document and return text back to the search engine.
Key benefits:
Integrates with existing operating systems and tools within your company
Provides an easy solution to search within PDF documents located on local computer, local network and intranet
Greatly increases your ability to accurately locate information
Much smaller and faster than IFilter offered by other vendors
Support Chinese/Japanese/Korean PDF documents .


Please note that this installer does not register with MOSS 2007 by default. That means that after you install it, MOSS will not use it to index pdf files. This could be fixed manually with some registry tweaking:
After you install the Foxit, add a pdf extension in MOSS search settings Open regedit, locate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\.pdf] Change the default value to {987f8d1a-26e6-4554-b007-6b20e2680632} . (You can get this handler addin value using Citeknet ifilter explorer)

Cmdline: net stop osearch
Cmdline: net start osearch

Do a full crawl.