Friday, December 18, 2009

How to import Active directory users to Moss 2007?

I want to make you clear why it is required? Some people have doubts why we import from active directory? Share Point will automatically check the windows authenticate users, when you click on "check names" in any column data type as "people and group".It will not only recognize the user but will give you full information through active directory import. All the required details like – domain, email address, department will update from active directory to Moss site.


So let us start ->
First you have to create a Shared Services Provider if it is not created in your central administration site. Then follow these steps –


1) Login in Central Administration site.


2) You will be able to see SharedServices1 link in left navigation menu under Shared Services Administration. This link name will depend what you have given in ssp name while configuring Shared services provider.


Central-Administrator

3) After clicking this -> you will be navigated to shared services administration screen for your SSP. You will be able to see all these section shown below. Click on “User Profiles and properties” link under User Profile and My sites section to import user profiles from the directory.

SSP

4) On the User Profiles and Properties page click on "Configure profile import".

Configure-Profile-ImportUser_Profiles-and-Properties




5) You will find one link "View Import Connection". On click of this link, new page will open. This page will have one button "Create new Connection". Click on this -> Add connection screen will be opened.

You have to fill all these parameters.
a.    Connection string type – Give Active directory.
b.    Domain Name – provide appropriate domain name.
c.    Select "Auto discover domain controller".
d. Port number and time out will come automatically. So do not change that.
e.    Click on "Auto fill root search  base". It will fill the default details in below section automatically.
f.    Change user filter criteria according to your requirement. This is a LDAP query. You will find this on other blogs that how to build the LDAP query.
g.    Check on Sub tree for all levels search.
h.    Under authentication information specify account name which has read permission for active directory. You can choose default account also.

Add-Connection




6)    Click on Ok-> You will get one warning message accept that and go ahead.

7)    you will find the previous screen with one new connection created which you can edit and save again.


8)    Go back to "Configure Profile Import" screen and fill the details. Click on full import and increment import. Schedule it according to your requirement.


9)    For current full import -> Click on Start full import in "User Profile and Properties page".


10)    You will be able to see your crawl result on this page only. After getting it completed. Go to view profile. You will be able to see all user profiles which have been imported.


11)    Done:)


Sunday, December 6, 2009

SharePoint Interview Questions


Interview Questions

I am sharing the Interview questions which have been asked to me in different companies. I will share all the answers in my coming next posts.
  1. How to import Active directory users to Moss 2007 ?
  2. What is Alternate Access Mapping?
  3. How to give alert in java script on click of one button in a web part?
  4. How you can give access to certain users to view a web part?
  5. How to Perform Form Authentication in Moss 2007?
  6. How to create Ajax Enabled web part? What should we do to make Share Point site AJAX Enabled?
  7. How to customize search?
  8. What is Information Management Policy?
  9. How many types of work flow are present in Share Point?
  10. How can you deploy a feature in Moss 2007 Site?
  11. How can to provide your own link in Moss 2007 Central Administration Site?
  12. How can you give your own tab in Site Setting drop down present in any site?
  13. How many type of databases can you explain regarding Moss 2007 installation?
  14. What is the difference between xml,xslt, xsd?
  15. What are the deployment methods to deploy a web part\feature in Production machine?
  16. Where do you place your .aspx pages in Share Point?

Saturday, December 5, 2009

Moss Installation Problem - Central Administrator Content DB is deleted

Installation Problem – There is one problem which can be faced during installation, so want to share with all of you.

Problem what can be faced - >


I was facing some issues in previous Moss 2007 installation so decided to reinstall it. So first I uninstalled it from control panel -> add\remove programs and then installed it again.

After that I logged in SQL Server 2005 to see all the databases are proper. I found the previous installed Moss 2007 web applications content db were not deleted so I manually deleted it. By mistakenly I deleted the newly installed central admin "Admin Database" (Content database for Central Administrator).
Big time screwed. Central administrator site was not browsable.

Solution which was tried but did not work->

• I tried to uninstall the SharePoint from control panel again -> so I can reinstall it properly but I found that it was unable to uninstall. Automatically, the wizard was disappearing.

• I tried to run the psconfigui.exe present at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN. From this wizard -> I tried to detach the SQL but no use then tried to run on the same installation without detaching. This was also a problem. Entries were logged in log file.

• I tried to run the setup again forcefully. I got remove and repair option. First tried with Remove, not worked. Then tried to repair, it has been done successfully but central admin database was not recovered.

• I tried to take back up of another installed central admin site and try to restore in new web application. Not succeeded.

• Tried to take SQL backup of another installed Central admin and resorted in SQL with the same name of previous Admin database. Then tried to attach it. Error what I faced is "Operation is not valid due to the current state of the object."

Finally the solution worked – Simple Solution 


• Services.msc – Stopped Sql service.

• All Programs -> Microsoft Office Server-> SharePoint Products and Technologies Configuration Wizard. Run it. Select the options -> detach and click ok.

• Start the SQL Service.

• Rename the previous Central Admin site in IIS because newly created site will be named as SharePoint Central Administration v3

• Rename the previous SharePoint_Config data base to SharePoint_Config_old.

• Run the wizard again.

• It will work.