Create SharePoint Service accounts through PowerShell script.

You need to domain admin or have permissions to create user in Active Directory.  Need to log in in the domain controller and run this script to create all the service accounts It creates following service accounts Account Description Domain rights SP_Farm Farm account – Configure and manage the server farm. SecurityAdmin and DB_Creator rights…

0

Restrict people picker to get users from a particular domain.

  We had a request from client to allow to pick up users in a people picker on a site from particular domain Let me elaborate the SharePoint environment involved here The SharePoint farm is on a domain say Contoso.  The client has another domain say Talespin.  There is 2 way trust relationship between Contoso…

1

No trusted providers were found while creating new User Profile Sync Connection

  In my last post Sync FBA user profiles I discussed how to synchronize Form based authentication users with SharePoint. One of the steps is to create a new synchronization connection for FBA.  Now I received couple of comments mentioning that they faced an issue where while creating new connection they got several errors like…

0

SharePoint database machine running out of disk space.

This is a common problem.  The first thing you might want to inspect is the database size. Navigate to C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA Check the size of SharePoint_Config database.  If this database is taking more disk space you are at the right page. Run the following commands and you should be good. alter database sharepoint_config…

1

Access denied with SPSecurity.RunWithElevated privileges

  A fellow colleague was trying to do something in web part that required more privileges So as all of us would do he wrapped the code round SPSecurity.RunWithElevatedPrivileges. It is then he started receiving errors on access denied each time he tried to add the web part. Below was his code   SPSecurity.RunWithElevatedPrivileges(delegate()  …

1

Confirm delete with Ajax

  Normally we would like to provide a confirmation dialog to the user before deleting something and initiate an AJAX request if user says yes to delete. Standard way looks like this: <asp:Button ID="Button1" runat="server" OnClientClick="return confirm(‘Are you sure you want to delete?’);" /> To work with AJAX when the button is AJAX-enabled or inside…

0

Sync LDAP users with SharePoint site for Forms Authentication

  In my earlier post Getting Updates to User profile in SharePoint, I wrote about AD updates not rolling out to site for defafult AD user i.e. Windows authentication.  This post talks about the same problem but for Forms Authentication. For simplicity I am using an example where I created LDAP Connection with users in…

2

Cannot recognize the XML namespace of this Web Part

In my earlier post Provisioning webparts through feature, we saw how can custom or out of the box web parts be provisioned on a page through visual studio feature. Note that sometimes using this approach you might stumble on this error “Cannot recognize the XML namespace” Notice that when ou download the configured web part…

1