Saturday, September 4, 2010

Component to Connect to Active Directory with Sharepoint WSS

March 9, 2009 by Kushel  
Filed under Latest, Sharepoint WSS

A set of three component for your Sharepoint (WSS) Intranet to connect to the Active Directory(AD) via LDAP. This component will allow users to search for colleagues in the AD. It will also allow users to update their own contact details. This component requires Window Authenticated access to your Intranet.

Click HERE to download.

Summary:

  • search for AD users using LDAP
  • view details of a selected AD user using LDAP
  • allow AD user’s to edit only their own AD contact details using LDAP

Directory Search

Before using any of these components, you will need to know your LDAP connection string, username and password. Once the components have been added to your Sharepoint site as web parts, you will need to ‘Modify the web part’, to add the connection details.

Once downloaded, copy each dll into the global assembly cache on your Sharepoint server(C:\Windows\Assembley). Right click on the assembly in the GAC to retrieve the ‘Public Key Token’ from the properties.

Add the following entries to the web.config file of your Sharepoint site (change the public key tokens if necessary):

SafeControl Assembly="ActiveDirectorySearch, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=81cbcca0d610705b"
Namespace="Kushel.Com.WSSADSearch" TypeName="*" Safe="True"

SafeControl Assembly="ActiveDirectoryUserProfile, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=b5bf2e0d7a1500e2"
Namespace="Kushel.Com.WSSADUserProfile" TypeName="*" Safe="True"

SafeControl Assembly="ActiveDirectoryEditUserProfile, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=4a6f057aa1895b65"
Namespace="Kushel.Com.WSSADEditUserProfile" TypeName="*" Safe="True"

Please note, these components are very simple and not excessively configurable. If you need help in using them, or want the code to expand on yourself, send me an email at mail@marbleblue.co.uk.

  • Twitter
  • Facebook
  • Delicious
  • Bebo
  • StumbleUpon
  • Digg
  • Blogger Post
  • WordPress
  • Share/Bookmark

Related posts:

  1. Failure adding assembly to the cache: Unknown Error – GACUtil
  2. Sharepoint WSS 3.0 Intranet Portal and Document Repository
  3. Alphabet Selector Web Server Control

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!