Archive

Archive for September, 2011

Sharepoint 2010 Web Front End Server and Application Server

September 30, 2011 3 comments
Categories: Uncategorized

SharePoint 2010 FARM Installation

Categories: Uncategorized

How to enable SharePoint 2010 site as a Windows and Forms authentication


How to enable SharePoint 2010 site as a Internet Application with out changing window authentication.
Here we are expecting 2 type of authentications for single sharepoint application.

Claims based authentication provides us with a way of dealing with multiple sorts of authentication in one site.
So we have to create our web application as a “Claims based authentication”.

In SharePoint 2007 versions we used to create a new site for each authentication method (Windows, Forms), but in SP2010 no need to create 2 diff sites.
We can use both at the same time mean using single site. You can give single URL to your users, based on their mode the have to select in the drop down while accessing the SP2010 site. In the drop down it will show: Windows (Active Directory) of Forms (External) based authentication.

http://jsiegmund.wordpress.com/2010/05/20/sp2010-creating-a-mixed-mode-login-page-for-claims-based-authentication/

Categories: Uncategorized

How to Change SharePoint authentication from classic mode to claims based


How to Change SharePoint authentication from classic mode to claims based
Click on Start–>All Programs -> SharePoint 2010 products -> Sharepoint 2010 Management Shell (run as a administrator)

Run below code by changing Webappname and account.

RUn Script related to claims based ……………

Now open Central Admin
Click on Central admin–>Manage Web Application
Click on web application which you have given while running script.
Click on Authentication Provider.
You can see in defaulr : Claim Based authentication

Categories: Uncategorized

Sharepoint 2010 Authentication


Claims-based authentication: which is built on Windows Identity Foundation (WIF).

Claims-based authentication is built on WIF, which is a set of .NET Framework classes that are used to implement claims-based identity. Claims-based authentication relies on standards such as WS-Federation, WS-Trust, and protocols such as SAML.

If you select claims-based authentication, SharePoint Server 2010 automatically changes all user accounts to claims identities, resulting in a claims token for each user. The claims token contains the claims pertaining to the user. Windows accounts are converted into Windows claims. Forms-based membership users are transformed into forms-based authentication claims. Claims that are included in SAML-based tokens can be used by SharePoint Server 2010. Additionally, SharePoint developers and administrators can augment user tokens with additional claims. For example, user Windows accounts and forms-based accounts can be augmented with additional claims that are used by SharePoint Server 2010.

Classic-mode authentication: which supports Windows authentication

If you select classic-mode, you can implement Windows authentication and the user accounts are treated by SharePoint Server 2010 as Active Directory Domain Services (AD DS) accounts.

http://technet.microsoft.com/en-us/library/cc262350.aspx#section1

Categories: Uncategorized

Sharepoint 2010 FARM Installation

Categories: Uncategorized

Infotech Sharepoint 2010 Interview


how to get document name using object model code.
how to scrinc database.
what is correlation id in sharepoint
what is WFE and Application Server
Where can we define configuration value in sharepoint 2010 while developing a Feature or webpart. Ex: emailid
Q)I have a feature, i want to activate this while site creation. How can i do? with out clicking Active Feature.
Ans) Modifying the site definition (onet.xml file)

In Onet.xml file you can specify the features that you want to associate to this site definition in the SiteFeatures and WebFeatures elements. Site scoped features are placed in element and Web scoped features are placed in element. So, If your list template feature is Site scoped add a Feature node with feature GUID as its ID attribute inside element.

With this, the list template feature will be automatically activated when a site is created using this site definition.

Q) What is the default Authentication in sharepoint 2010 while creating a web application.
A) Classic Mode Authentication

Categories: Uncategorized

Sharepoint 2010 restart ULS logs

Categories: Uncategorized

How Does a Developer Manipulate ULS Logs


ULS logs Default path:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS

Log file will be like this:
SERVER-20110923-1745.txt
SERVER-Date-ID
Use ULS viewer to view the logs. You can download from this path:http://ulsviewer.codeplex.com/

ULSViewer: It allows users to open a ULS log file and display its contents in a user friendly format. Users can then perform advanced functions such as filtering, sorting, highlighting, loading logs, appending logs, etc in order to single out the data that is important to the user. This information can be used to diagnose problems with machines running ULS services, or to monitor machines and the events they create in realtime.

How Does a Developer Manipulate ULS Logs?
In SharePoint Foundation, ULS exposes configurable settings in two ways, through the:

object model

Windows PowerShell cmdlets

Object Model and ULS Logs:This is new Trace Logging API in Microsoft SharePoint Foundation 2010.
In Windows SharePoint Services 3.0, access to ULS logs was provided through the IDiagnosticsManager interface. However, in SharePoint Foundation it is recommended that you use the SPDiagnosticsServiceBase class. The SPDiagnosticsServiceBase class wraps all calls to the IDiagnosticsManager class, making it easier for developers to interact with event logs. This approach allows you to write directly to the trace service.

Windows PowerShell and ULS Logs:

Writing to the Trace Log:
using Microsoft.SharePoint.Administration;
WriteTrace(System.UInt32, Microsoft.SharePoint.Administration.SPDiagnosticsCategory, Microsoft.SharePoint.Administration.TraceSeverity, System.String, System.Object[]);

Writing to the Event Log:
using Microsoft.SharePoint.Administration;
WriteEvent(System.UInt16,Microsoft.SharePoint.Administration.SPDiagnosticsCategory,Microsoft.SharePoint.Administration.EventSeverity,System.String,System.Object[]);

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spdiagnosticsservicebase.aspx

Categories: Uncategorized

Sharepoint 2010 EventReceiver


List events: “SPListEventReceiver” class

List Item Event receiver will import “SPItemEventReceiver” class

List e-mail events (SPEmailEventReceiver class)

Workflow events (SPWorkflowEventReceiver class)

Web events (SPWebEventReceiver class)
———————————————————————————————————-

SPSite (Microsoft.SharePoint.SPSite.EventReceivers)

SPWeb (Microsoft.SharePoint.SPWeb.EventReceivers)

SPList (Microsoft.SharePoint.SPList.EventReceivers)

SPContentType (Microsoft.SharePoint.SPContentType.EventReceivers)

SPFile (Microsoft.SharePoint.SPFile.EventReceivers)

SPWorkflow (Microsoft.SharePoint.SPWorkflow.EventReceivers)

Categories: Uncategorized